-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
250 lines (234 loc) · 6.54 KB
/
docker-compose.yml
File metadata and controls
250 lines (234 loc) · 6.54 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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
services:
nginx:
image: nginx:1.21.1
ports:
- "80:80"
- "443:443"
volumes:
- web-static:/var/www/workflow/static
- web-static-livedata:/var/www/livedata/static
- ./nginx/django.conf:/etc/nginx/conf.d/default.conf
- ./nginx/nginx.crt:/etc/nginx/nginx.crt
- ./nginx/nginx.key:/etc/nginx/nginx.key
healthcheck:
test: ["CMD", "service", "nginx", "status"]
depends_on:
webmon:
condition: service_healthy
networks:
default:
ipv4_address: 172.16.238.222
webmon:
restart: always
build:
context: .
dockerfile: Dockerfile.webmon
volumes:
- web-static:/var/www/workflow/static/
# add in folder to be picked up by update-ca-certificates in docker entrypoint
- ./nginx/nginx.crt:/usr/local/share/ca-certificates/nginx.crt
env_file:
- .env
- .env.ci
environment:
- DJANGO_SETTINGS_MODULE=${DJANGO_SETTINGS_MODULE}
- LOAD_INITIAL_DATA=${LOAD_INITIAL_DATA-true}
- LDAP_SERVER_URI=${LDAP_SERVER_URI}
- LDAP_DOMAIN_COMPONENT=${LDAP_DOMAIN_COMPONENT}
- CATALOG_URL=${CATALOG_URL}
- CATALOG_API_TOKEN=${CATALOG_API_TOKEN}
- GUNICORN_CMD_ARGS=--reload --workers=8
- REQUESTS_CA_BUNDLE=/etc/ssl/certs/ca-certificates.crt
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8000/ht || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
depends_on:
db:
condition: service_healthy
dasmon:
build:
context: .
dockerfile: Dockerfile.dasmon
env_file:
- .env
environment:
- PURGE_TIMEOUT=0.1
- CACHE_PURGE_TIMEOUT=0.5
healthcheck:
test: ["CMD", "pixi", "run", "-e", "dasmon", "dasmon_listener", "status"]
depends_on:
activemq:
condition: service_healthy
webmon:
condition: service_healthy
workflow:
build:
context: .
dockerfile: Dockerfile.workflow
env_file:
- .env
healthcheck:
test: ["CMD", "pixi", "run", "-e", "workflow", "workflowmgr", "status"]
depends_on:
activemq:
condition: service_healthy
webmon:
condition: service_healthy
db:
restart: always
image: postgres:17
env_file:
- .env
environment:
# variables DATABASE_* should be initialized in .env file
POSTGRES_DB: ${DATABASE_NAME}
POSTGRES_USER: ${DATABASE_USER}
POSTGRES_PASSWORD: ${DATABASE_PASS}
ports:
# DATABASE_PORT should be initialized in .env file
- "${DATABASE_PORT}:${DATABASE_PORT}"
volumes:
- pgdata:/var/lib/postgresql/data/
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DATABASE_USER} -d ${DATABASE_NAME}"]
interval: 5s
timeout: 5s
retries: 5
activemq:
user: root
image: apache/activemq-artemis:latest-alpine
hostname: activemq
ports:
- 8161:8161
- 61613:61613
volumes:
- ./config/artemis:/var/lib/artemis-instance/etc-override
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8161 || exit 1
interval: 5s
timeout: 5s
retries: 5
autoreducer:
build:
context: .
dockerfile: Dockerfile.autoreducer
args:
CONFIG_FILE: ./tests/configuration/post_process_consumer.conf
PLOTLY_VERSION: "5"
volumes:
# add in RHEL9 certs folder to be picked up by update-ca-trust in docker entrypoint
- ./nginx/nginx.crt:/etc/pki/ca-trust/source/anchors/nginx.crt
hostname: autoreducer
environment:
- PLOTLY_VERSION=5
healthcheck:
test: ["CMD", "pgrep", "queueProcessor"]
depends_on:
activemq:
condition: service_healthy
livedata:
condition: service_healthy
nginx:
condition: service_healthy
autoreducer_himem:
build:
context: .
dockerfile: Dockerfile.autoreducer
args:
CONFIG_FILE: ./tests/configuration/post_process_consumer.himem.conf
PLOTLY_VERSION: "6"
volumes:
# add in RHEL9 certs folder to be picked up by update-ca-trust in docker entrypoint
- ./nginx/nginx.crt:/etc/pki/ca-trust/source/anchors/nginx.crt
hostname: autoreducer.himem
environment:
- PLOTLY_VERSION=6
healthcheck:
test: ["CMD", "pgrep", "queueProcessor"]
depends_on:
activemq:
condition: service_healthy
livedata:
condition: service_healthy
nginx:
condition: service_healthy
# Generator of AMQ messages and VP updates
# https://webmonchow.readthedocs.io/en/latest/index.html
webmonchow:
restart: always
build:
context: .
dockerfile: Dockerfile.webmonchow
env_file:
- .env
depends_on:
db:
condition: service_healthy
webmon:
condition: service_healthy
activemq:
condition: service_healthy
livedata:
restart: always
image: ghcr.io/neutrons/live_data_server/live_data_server:latest-dev
env_file:
- .env
environment:
DJANGO_SUPERUSER_USERNAME: ${DATABASE_USER}
DJANGO_SUPERUSER_PASSWORD: ${DATABASE_PASS}
volumes:
- web-static-livedata:/var/www/livedata/static
- ./config/livedata_local_settings.py:/var/www/livedata/app/local_settings.py
healthcheck:
test: wget --no-verbose --tries=1 --spider http://localhost:8000/admin || exit 1
interval: 60s
retries: 5
start_period: 20s
timeout: 10s
depends_on:
db:
condition: service_healthy
webmon:
condition: service_healthy
artemis_data_collector:
restart: always
image: ghcr.io/neutrons/artemis_data_collector/artemis_data_collector:latest-prod
env_file:
- .env
environment:
INTERVAL: 60
ARTEMIS_URL: http://activemq:8161
ARTEMIS_USER: artemis
ARTEMIS_PASSWORD: artemis
ARTEMIS_BROKER_NAME: Artemis-Broker
QUEUE_LIST: "['REDUCTION.DATA_READY', 'REDUCTION.HIMEM.DATA_READY', 'CATALOG.ONCAT.DATA_READY', 'REDUCTION_CATALOG.DATA_READY']"
depends_on:
db:
condition: service_healthy
webmon:
condition: service_healthy
activemq:
condition: service_healthy
oncat:
build:
context: .
dockerfile: Dockerfile.oncat
autoheal:
restart: always
image: willfarrell/autoheal
environment:
AUTOHEAL_CONTAINER_LABEL: all
volumes:
- /var/run/docker.sock:/var/run/docker.sock
volumes:
web-static:
web-static-livedata:
pgdata:
networks:
default:
ipam:
config:
- subnet: 172.16.238.0/24