-
-
Save hunsly/2c1e00629d010cdf8784d6d31585367f to your computer and use it in GitHub Desktop.
mongo and nodejs docker yml
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' | |
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