Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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_FROM=noreply@goscouter.com
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_FROM=noreply@goscouter.com
command: sh -c "npm run worker"
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_FROM=noreply@goscouter.com
- 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_FROM=noreply@goscouter.com
- 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
You can’t perform that action at this time.