forked from LaconicNetwork/kompose
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:
@@ -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
|
||||
Reference in New Issue
Block a user