Created
March 26, 2019 23:13
-
-
Save aramirez92/83474e17d3ee1f4787564e633df260e7 to your computer and use it in GitHub Desktop.
Mongo + NodeJS
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: '3' | |
services: | |
app: | |
container_name: app | |
restart: always | |
build: . | |
ports: | |
- '80:3000' | |
links: | |
- mongodb | |
mongodb: | |
image: mongo:3.4 | |
container_name: mongodb | |
environment: | |
- MONGO_DATA_DIR=/data/db | |
volumes: | |
- ./data:/data/db | |
ports: | |
- '27017:27017' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment