Watch another container’s app folder using docker-compose and a shared volume
version: '2'
services:
nginx:
image: my-server-image
ports:
- "80:80"
volumes:
- ./path/to/host/app:/var/www
- app-volume:/var/www
webpack:
image: danielvdspuy/node-webpack:latest
ports:
- "35729:35729"
volumes:
- app-volume:/usr/src/app/
volumes:
app-volume: