Skip to content

Instantly share code, notes, and snippets.

@blabadi
Created August 20, 2018 04:07
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 blabadi/1382408477bf2f93339e020fdd0e466e to your computer and use it in GitHub Desktop.
Save blabadi/1382408477bf2f93339e020fdd0e466e to your computer and use it in GitHub Desktop.
version: "2"
services:
app:
container_name: nutracker-api
restart: always
build: .
expose:
- 8080
ports:
- "8080:8080"
# legacy
# links:
# - mongo
environment:
- mongo.host=mongo-host-container
mongo:
container_name: mongo-host-container
image: mongo
volumes:
- /home/ec2-user/dev/nutracker-db:/data/db
ports:
- "27017:27017"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment