Skip to content
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.

Mount a host directory as a data volume in Docker #1053

Closed
@lvarayut

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"

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions