-
Notifications
You must be signed in to change notification settings - Fork 14
/
docker-compose.prod.yaml
36 lines (34 loc) · 1.18 KB
/
docker-compose.prod.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# NOTE: Run with base docker-compose.yaml
version: '3.9'
services:
nginx:
volumes:
# Include Zenysis static assets and serve them directly from nginx.
- ${DATA_PATH}/output/zenysis_static:/usr/share/nginx/html/zenysis_static:ro
# Set a custom vhost default configuration that includes compression
# and caching.
- ${NGINX_VHOST}:/etc/nginx/vhost.d/default_location:ro
restart: always
hasura:
volumes:
- ${DATA_PATH}/output/logs:/logs
restart: always
web:
environment:
- VIRTUAL_HOST=${WEB_VIRTUAL_HOST}
- LETSENCRYPT_HOST=${WEB_LETSENCRYPT_HOST}
- LETSENCRYPT_EMAIL=${WEB_LETSENCRYPT_EMAIL}
# We can use this to allow docker to handle loadbalancing (default nginx round-robin)
# labels:
# com.github.nginx-proxy.nginx-proxy.loadbalance: "server web:5000;"
volumes:
- ${DATA_PATH}/output:/data/output
- ${DATA_PATH}/output/logs:/logs
- ${DATA_PATH}/ubuntu/uploads:/zenysis/uploads
restart: always
worker:
volumes:
- ${DATA_PATH}/output:/data/output
- ${DATA_PATH}/output/logs:/logs
- ${DATA_PATH}/ubuntu/.mc/config.json:/root/.mc/config.json
restart: always