Skip to content

Instantly share code, notes, and snippets.

@caltuntas
Created February 23, 2019 10:41
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 caltuntas/cce8ee68b3b00d5a2861997534ad83fe to your computer and use it in GitHub Desktop.
Save caltuntas/cce8ee68b3b00d5a2861997534ad83fe to your computer and use it in GitHub Desktop.
docker-compose.yml
version: "3"
services:
mongo:
image: mongo
ports:
- 27017:27017
volumes:
- ./db:/data/db
redis:
image: redis:5-alpine
web:
image: caltuntas/sechard_web
ports:
- 80:80
- 4200:4200
volumes:
- ./web:/data
api:
image: caltuntas/sechard_api
restart: on-failure
ports:
- 8000:8000
- 2222:2222
volumes:
- ./api:/data
links:
- mongo
- redis
depends_on:
- mongo
- redis
environment:
- NODE_ENV=production
- MIGRATE=true
- DB_URL=mongodb://mongo/sechard
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_PASS=hardsecret
- APP_PORT=8000
- WAIT_HOSTS=mongo:27017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment