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

How do I share a volume between containers using docker-compose #11

Open
hettling opened this issue May 12, 2016 · 3 comments
Open

How do I share a volume between containers using docker-compose #11

hettling opened this issue May 12, 2016 · 3 comments

Comments

@hettling
Copy link
Collaborator

Still doesn't make sense.

rvosa added a commit that referenced this issue May 12, 2016
@dmlond
Copy link
Collaborator

dmlond commented May 12, 2016

you can create a volume container with something like:

foovolume:
image: alpine:latest
volumes:
- /foo

then you can attach /foo to any other container with

app:
...
volumes_from:
- foovolume

@dmlond
Copy link
Collaborator

dmlond commented May 12, 2016

what you have in conf/docker/docker-compose-data.yml should work. does it not?

@hettling
Copy link
Collaborator Author

I started messing around with it... I'll revert to your version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants