Created
February 23, 2019 10:41
-
-
Save caltuntas/cce8ee68b3b00d5a2861997534ad83fe to your computer and use it in GitHub Desktop.
docker-compose.yml
This file contains hidden or 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: | |
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