Skip to content

Instantly share code, notes, and snippets.

@aramirez92
Created March 26, 2019 23:13
Show Gist options
  • Save aramirez92/83474e17d3ee1f4787564e633df260e7 to your computer and use it in GitHub Desktop.
Save aramirez92/83474e17d3ee1f4787564e633df260e7 to your computer and use it in GitHub Desktop.
Mongo + NodeJS
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