support for volumes_from docker-compose construct

Now a user can provide volumes_from to share volumes
from other service so here the PVC created for that
service will be shared by service calling volumes_from
This commit is contained in:
Suraj Deshmukh
2016-10-19 09:15:47 +05:30
parent d9899b788d
commit fd09efed43
9 changed files with 622 additions and 2 deletions
@@ -0,0 +1,20 @@
version: "2"
services:
web:
image: centos/httpd
volumes:
- "./app:/src/app"
ports:
- "3030:3000"
command: nodemon -L app/bin/www
nginx:
restart: always
image: nginx
ports:
- "80:80"
volumes:
- /www/public
volumes_from:
- web