Skip to content

Instantly share code, notes, and snippets.

@hunsly
Forked from anonymous/test.yml
Last active February 9, 2018 22:25
Show Gist options
  • Save hunsly/2c1e00629d010cdf8784d6d31585367f to your computer and use it in GitHub Desktop.
Save hunsly/2c1e00629d010cdf8784d6d31585367f to your computer and use it in GitHub Desktop.
mongo and nodejs docker yml
version: '2'
services:
web:
image: node:argon
volumes:
- ./www:/usr/src/app
ports:
- "3000:8080"
depends_on:
- mongo
networks:
- all
environment:
MONGODB_URI: "mongodb://mongo:27017/accounts"
links:
- mongo
entrypoint: /usr/src/app/index.js
command: npm install && node index.js
mongo:
container_name: mongo
image: mongo
volumes:
- ./db:/data/db
networks:
all:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment