Skip to content

Instantly share code, notes, and snippets.

@jeffmess
Created May 30, 2016 09:43
Show Gist options
  • Save jeffmess/b6386b20a2f23508e855b94df3b9cbfa to your computer and use it in GitHub Desktop.
Save jeffmess/b6386b20a2f23508e855b94df3b9cbfa to your computer and use it in GitHub Desktop.
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
❯❯❯ 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