rubberguppe/docker-compose.yml

82 lines
1.6 KiB
YAML
Raw Normal View History

2021-11-01 23:05:14 +00:00
version: "3.8"
services:
2023-01-27 18:44:49 +00:00
proxy:
image: valian/docker-nginx-auto-ssl
restart: always
ports:
- 80:80
- 443:443
volumes:
- ssl_data:/etc/resty-auto-ssl
env_file: '.env'
2021-11-01 23:05:14 +00:00
guppe:
image: datatitian/guppe
deploy:
mode: replicated
2023-01-27 18:44:49 +00:00
replicas: 4
placement:
constraints:
2023-01-27 18:44:49 +00:00
- "node.labels.web==true"
2022-01-01 22:28:45 +00:00
restart: always
2021-11-01 23:05:14 +00:00
env_file: '.env'
environment:
DB_URL: 'mongodb://mongodb:27017'
2023-01-27 18:44:49 +00:00
PROXY_MODE: 1
2021-11-01 23:05:14 +00:00
depends_on:
- mongodb
volumes:
- certs:/root/.small-tech.org/auto-encrypt
# localdev certs
- ./certs:/usr/src/guppe/certs
logging:
driver: local
options:
max-size: '10m'
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 30s
worker1:
image: datatitian/guppe
command: [ "node", "deliveryWorker.js" ]
deploy:
mode: replicated
2023-01-27 18:44:49 +00:00
replicas: 25
placement:
constraints:
2023-01-27 18:44:49 +00:00
- "node.labels.delivery==true"
restart: always
env_file: '.env'
environment:
DB_URL: 'mongodb://mongodb:27017'
depends_on:
- mongodb
logging:
driver: local
options:
max-size: '10m'
2021-11-01 23:05:14 +00:00
mongodb:
image: mongo:4.2
deploy:
mode: replicated
replicas: 1
placement:
constraints:
2023-01-27 18:44:49 +00:00
- "node.labels.database==true"
2022-01-01 22:28:45 +00:00
restart: always
2021-11-01 23:05:14 +00:00
volumes:
- mongo-data:/data/db
logging:
driver: local
options:
max-size: '10m'
volumes:
mongo-data:
certs: