kompose/script/test/fixtures/volume-mounts/volumes-from/docker-compose.yml
Suraj Deshmukh fd09efed43 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
2016-10-19 09:15:47 +05:30

21 lines
297 B
YAML

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