Created
May 30, 2016 09:43
-
-
Save jeffmess/b6386b20a2f23508e855b94df3b9cbfa to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
db: | |
image: postgres | |
redis: | |
extends: | |
file: common.yml | |
service: redis | |
rabbitmq: | |
image: gavinmroy/alpine-rabbitmq | |
ports: | |
- "5672:5672" | |
- "15672:15672" | |
web: | |
extends: | |
file: common.yml | |
service: web | |
volumes_from: | |
- netup | |
depends_on: | |
- db | |
- rabbitmq | |
- redis | |
sneakers: | |
extends: | |
file: common.yml | |
service: sneakers | |
depends_on: | |
- db | |
- rabbitmq | |
- redis | |
volumes: | |
netup: | |
external: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
❯❯❯ docker volume inspect netup | |
[ | |
{ | |
"Name": "netup", | |
"Driver": "local", | |
"Mountpoint": "/mnt/sda1/var/lib/docker/volumes/netup/_data", | |
"Labels": {} | |
} | |
] | |
❯❯❯ docker-compose up | |
ERROR: Service "web" mounts volumes from "netup", which is not the name of a service or container. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment