Skip to content

Instantly share code, notes, and snippets.

@aherve
Last active October 2, 2016 07:58
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 aherve/1e236bd99fa3ebd12a7c to your computer and use it in GitHub Desktop.
Save aherve/1e236bd99fa3ebd12a7c to your computer and use it in GitHub Desktop.
hello:
links:
- "db:db"
build: .
volumes:
- .:/app
- /app/node_modules
command: node ./src/hello.js
environment:
- NODE_ENV=development
autotest:
links:
- "db:db"
build: .
volumes:
- ./src:/app/src
- /app/node_modules
command: mocha ./src/hello.spec.js --watch
environment:
- NODE_ENV=test
test:
links:
- "db:db"
build: .
volumes:
- ./src:/app/src
- /app/node_modules
command: mocha ./src/hello.spec.js
environment:
- NODE_ENV=test
db:
image: mongo:3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment