Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add local files volume mount support for both relative path and absolute path #19

Merged
merged 5 commits into from
Aug 18, 2022

Conversation

t83714
Copy link
Contributor

@t83714 t83714 commented Apr 15, 2022

Currently, dockerode-compose only supports volume mount when source is a volume name.
e.g.:

services:
  backend:
    image: awesome/backend
    volumes:
      - db-data:/data
volumes:
  db-data:

Local files volume mount is not supported. e.g.:

services:
  backend:
    image: awesome/backend
    volumes:
      # relative path local file volume mount
      - ./my-local-config-file.json:/etc/my-local-config-file.json

or

services:
  backend:
    image: awesome/backend
    volumes:
      # absolute path local file volume mount
      - /my-project/dir1/my-local-config-file.json:/etc/my-local-config-file.json

This PR:

@apocas apocas merged commit 60d92af into apocas:main Aug 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants