This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.
Closed
Description
Should we mount a host directory as a data volume in docker-compose.yml
? So, we could develop on our local machine, and keep our codes sync between the local machine and a docker machine? As following:
web:
build: .
links:
- db
ports:
- "3000:3000"
environment:
NODE_ENV: development
volumes:
- .:/home/mean
db:
image: mongo
ports:
- "27017:27017"