-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
176 lines (166 loc) · 4.26 KB
/
Copy pathdocker-compose.yml
File metadata and controls
176 lines (166 loc) · 4.26 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
version: "3.4"
services:
nginx:
image: "ghcr.io/ddmal/nginx:${DOCKER_TAG}"
command: /run/start
depends_on:
- celery
- postgres
- rabbitmq
- redis
- rodan-main
environment:
TZ: America/Toronto
SERVER_HOST: localhost
ports:
- "80:80"
- "443:443"
- "9002:9002"
volumes:
- "resources:/rodan/data"
# Local-only override: pass the real request scheme instead of the hardcoded
# `X-Scheme https` baked into the prod image, so DRF emits http:// URLs over
# plain-HTTP local dev (Django's SECURE_PROXY_SSL_HEADER trusts X-Scheme).
- "./nginx/config/rodan.local.conf:/etc/nginx/sites-available/rodan.conf"
rodan-main:
image: "ghcr.io/ddmal/rodan-main:${DOCKER_TAG}"
healthcheck:
test:
[
"CMD-SHELL",
"/usr/bin/curl -H 'User-Agent: docker-healthcheck' http://localhost:8000/api/?format=json || exit 1"
]
interval: "10s"
timeout: "5s"
retries: 2
start_period: "2m"
command: /run/start
environment:
TZ: America/Toronto
SERVER_HOST: localhost
CELERY_JOB_QUEUE: None
depends_on:
- postgres
- rabbitmq
- redis
- iipsrv
env_file:
- ./scripts/local.env
volumes:
- "resources:/rodan/data"
- "./rodan-main/code:/code/Rodan"
rodan-client:
image: "ghcr.io/ddmal/rodan-client:${DOCKER_TAG}"
volumes:
- "./rodan-client/code:/code"
- "./rodan-client/config/configuration.json:/client/configuration.json"
iipsrv:
image: "ghcr.io/ddmal/iipsrv:${DOCKER_TAG}"
volumes:
- "resources:/rodan/data"
celery:
image: "ghcr.io/ddmal/rodan-main:${DOCKER_TAG}"
command: /run/start-celery
environment:
TZ: America/Toronto
SERVER_HOST: localhost
CELERY_JOB_QUEUE: celery
healthcheck:
test:
[
"CMD",
"celery",
"-A",
"rodan",
"--workdir",
"/code/Rodan",
"inspect",
"ping",
"-d",
"celery@celery"
]
interval: "30s"
timeout: "3s"
start_period: "1m"
retries: 3
depends_on:
- postgres
- rodan-main
- rabbitmq
- redis
env_file:
- ./scripts/local.env
volumes:
- "resources:/rodan/data"
- "./rodan-main/code:/code/Rodan"
py3-celery:
image: "ghcr.io/ddmal/rodan-python3-celery:${DOCKER_TAG}"
command: bash -c "tail -f /dev/null"
environment:
TZ: America/Toronto
SERVER_HOST: localhost
CELERY_JOB_QUEUE: Python3
depends_on:
- postgres
- rodan-main
- rabbitmq
- redis
- celery
env_file:
- ./scripts/local.env
volumes:
- "resources:/rodan/data"
- "./rodan-main/code:/code/Rodan"
gpu-celery:
image: "ghcr.io/ddmal/rodan-gpu-celery:${DOCKER_TAG}"
command: /run/start-celery
environment:
TZ: America/Toronto
SERVER_HOST: localhost
CELERY_JOB_QUEUE: GPU
depends_on:
- postgres
- rodan-main
- rabbitmq
- redis
- celery
env_file:
- ./scripts/local.env
volumes:
- "resources:/rodan/data"
- "./rodan-main/code:/code/Rodan"
redis:
image: "redis:alpine"
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 10s
timeout: 5s
retries: 5
depends_on:
- postgres
postgres:
image: "ghcr.io/ddmal/postgres-plpython:${DOCKER_TAG}"
healthcheck:
test: [ "CMD-SHELL", "pg_isready", "-U", "postgres" ]
interval: 10s
timeout: 5s
retries: 5
env_file:
- ./scripts/local.env
rabbitmq:
# Pinned to the 3.13 line to match production (3.13.7). RabbitMQ 4.x disables the
# `transient_nonexcl_queues` feature by default, which Celery's pidbox/reply/event
# queues (and `celery inspect`) declare — an unpinned `rabbitmq:alpine` now resolves
# to 4.x and breaks the workers with "Feature transient_nonexcl_queues is deprecated".
image: "rabbitmq:3.13-alpine"
healthcheck:
test: [ "CMD", "rabbitmq-diagnostics", "-q", "ping" ]
interval: "30s"
timeout: "3s"
retries: 3
depends_on:
- redis
env_file:
- ./scripts/local.env
volumes:
resources: