forked from LaconicNetwork/kompose
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
21 lines
297 B
YAML
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
|