Skip to content

Instantly share code, notes, and snippets.

@plmrry
Created January 10, 2017 20:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save plmrry/b446db95c28c1b554fc935ec7d49d106 to your computer and use it in GitHub Desktop.
Save plmrry/b446db95c28c1b554fc935ec7d49d106 to your computer and use it in GitHub Desktop.
Basic node/mongo Docker compose file
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