Created
January 10, 2017 20:15
-
-
Save plmrry/b446db95c28c1b554fc935ec7d49d106 to your computer and use it in GitHub Desktop.
Basic node/mongo Docker compose file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.1' | |
services: | |
node: | |
build: . | |
env_file: .env | |
working_dir: /usr/src/app | |
volumes: | |
- ./:/usr/src/app | |
depends_on: | |
- mongo | |
mongo: | |
image: mongo:latest | |
volumes: | |
- ./mongo_data:/data/db | |
- ./:/usr/src/app | |
working_dir: /usr/src/app |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment