grammarly / rocker-compose

Docker composition tool with idempotency features for deploying apps composed of multiple containers.
Other
407 stars 26 forks source link

Use named volumes #38

Closed alkersan closed 6 years ago

alkersan commented 8 years ago

Similar to networks in #36 docker 1.9 added volume management API. Now it's possible to create and mount named volumes:

docker volume create --name mysql-data
docker run -d -v mysql-data:/var/lib/mysql mysql:5.6

Would be useful to have similar syntax in compose.yml:

db:
    image: mysql:5.6
    volumes:
      - mysql-data:/var/lib/mysql
ybogdanov commented 8 years ago

@alkersan yep, will add it soon.

BlinkyStitt commented 8 years ago

Any progress on this? I was expecting this behavior since its how docker-compose works and then ended up with a directory mounted on my host machine.

ybogdanov commented 6 years ago

Closing this issue as the project is discontinued. See https://github.com/grammarly/rocker-compose/blob/master/README.md