Created
July 15, 2016 19:44
-
-
Save shanestillwell/e2df729f4d484b2ec4465e2ca436fa3f to your computer and use it in GitHub Desktop.
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: '2' | |
services: | |
nginx: | |
image: registry.gitlab.com/shanestillwell/goscouter-nginx:latest | |
restart: unless-stopped | |
ports: | |
- 443:443 | |
volumes: | |
- /root/ssl:/etc/nginx/ssl | |
node: | |
image: registry.gitlab.com/shanestillwell/goscouter-api:latest | |
restart: unless-stopped | |
environment: | |
- NODE_ENV=production | |
- DB_URI=mongodb://xxxx | |
- SPARKSPOST_KEY=xxxxx | |
- JWT_SECRET=xxxx | |
- [email protected] | |
command: sh -c "npm start" | |
worker: | |
image: registry.gitlab.com/shanestillwell/goscouter-api:latest | |
restart: unless-stopped | |
environment: | |
- NODE_ENV=production | |
- DB_URI=mongodb://xxxx | |
- SPARKSPOST_KEY=xxxx | |
- JWT_SECRET=xxx | |
- [email protected] | |
command: sh -c "npm run worker" |
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: '2' | |
volumes: | |
data: | |
driver: local | |
services: | |
mongodb: | |
image: mongo:3.2 | |
volumes: | |
- ./data:/data/db | |
ports: | |
- "27017:27017" | |
expose: | |
- "27017" | |
node: | |
image: mhart/alpine-node:4 | |
depends_on: | |
- mongodb | |
volumes: | |
- ./goscouter-api/:/src/ | |
environment: | |
- DB_URI=mongodb://mongodb:27017/goscouter | |
- [email protected] | |
- JWT_SECRET=xxx | |
- SPARKSPOST_KEY=xxx | |
- API_URL=https://api.goscouter.com | |
- WWW_URL=http://localhost:8000 | |
- PORT=3000 | |
expose: | |
- "3000" | |
ports: | |
- "3000:3000" | |
working_dir: /src | |
command: sh -c "npm install && npm start" | |
worker: | |
image: registry.gitlab.com/shanestillwell/goscouter-api:latest | |
depends_on: | |
- mongodb | |
volumes: | |
- ./goscouter-api/:/src/ | |
environment: | |
- DB_URI=mongodb://mongodb:27017/goscouter | |
- [email protected] | |
- JWT_SECRET=xxxx | |
- SPARKSPOST_KEY=xxx | |
- API_URL=https://api.goscouter.com | |
- WWW_URL=http://localhost:8000 | |
working_dir: /src | |
command: sh -c "npm install && npm run worker" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment