Repository navigation
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
116 lines (110 loc) · 2.97 KB
/
Copy pathdocker-compose.prod.yml
File metadata and controls
116 lines (110 loc) · 2.97 KB
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
services:
postgres:
image: postgres:16.8-alpine
container_name: gw2a-postgres-prod
environment:
POSTGRES_USER: gw2analytics
POSTGRES_PASSWORD: gw2analytics
POSTGRES_DB: gw2analytics
volumes:
- pgdata_prod:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U gw2analytics"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
minio:
# Same image and build as docker-compose.yml: official GitHub Release
# binary, SHA-256 verified at build time. Still intentionally unpublished
# -- MinIO stays on the internal compose network here.
image: gw2a-minio:RELEASE.2025-09-07T16-13-09Z
build:
context: .
dockerfile: docker/minio/Dockerfile
container_name: gw2a-minio-prod
command: server /data --console-address ":9001"
environment:
MINIO_ROOT_USER: gw2analytics
MINIO_ROOT_PASSWORD: gw2analytics-secret
volumes:
- miniodata_prod:/data
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
interval: 5s
timeout: 5s
retries: 5
restart: unless-stopped
api:
build:
context: .
dockerfile: apps/api/Dockerfile
ports:
- "8000:8000"
env_file: ./.env.prod
environment:
ARQ_REDIS_HOST: redis
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -f http://localhost:8000/healthz || exit 1"]
interval: 10s
timeout: 5s
retries: 5
start_period: 15s
restart: unless-stopped
redis:
image: redis:7-alpine
container_name: gw2a-redis-prod
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 5s
retries: 5
arq-worker:
build:
context: .
dockerfile: apps/api/Dockerfile
container_name: gw2a-arq-worker-prod
command: arq gw2analytics_api.workers.parser_settings.WorkerSettings
env_file: ./.env.prod
environment:
ARQ_REDIS_HOST: redis
depends_on:
postgres:
condition: service_healthy
minio:
condition: service_healthy
redis:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "python -c \"import os; os.kill(1, 0)\" || exit 1"]
interval: 15s
timeout: 5s
retries: 3
start_period: 10s
restart: unless-stopped
web:
build: ./web
ports:
- "3000:3000"
env_file: ./.env.prod
depends_on:
api:
condition: service_healthy
healthcheck:
test: ["CMD", "node", "-e", "require('http').get('http://localhost:3000',function(r){process.exit(r.statusCode===200?0:1)}).on('error',function(){process.exit(1)})"]
interval: 10s
timeout: 5s
retries: 5
start_period: 10s
restart: unless-stopped
volumes:
pgdata_prod:
miniodata_prod: