-
-
Notifications
You must be signed in to change notification settings - Fork 44
/
docker-compose.testautoconf.yaml
474 lines (473 loc) · 16.5 KB
/
docker-compose.testautoconf.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
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
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
version: '3.4'
services:
riperistap:
image: artemis_riperistap
build: ./monitor-services/riperistap/
restart: always
depends_on:
- database
- prefixtree
- rabbitmq
- redis
expose:
- 3000
networks:
- artemis
environment:
MON_TIMEOUT_LAST_BGP_UPDATE: ${MON_TIMEOUT_LAST_BGP_UPDATE}
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REST_PORT: 3000
RIS_ID: ${RIS_ID}
volumes:
- ./testing/autoconf/configs/:/etc/artemis/
- ./testing/test_entrypoints/entrypoint.riperistap.test:/root/entrypoint
- ./monitor-services/riperistap/core/ripe_ris.py:/root/core/ripe_ris.py
- ./testing/.coveragerc:/root/core/.coveragerc
bgpstreamlivetap:
image: artemis_bgpstreamlivetap
build: ./monitor-services/bgpstreamlivetap/
restart: always
depends_on:
- database
- prefixtree
- rabbitmq
- redis
expose:
- 3000
networks:
- artemis
environment:
MON_TIMEOUT_LAST_BGP_UPDATE: ${MON_TIMEOUT_LAST_BGP_UPDATE}
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REST_PORT: 3000
volumes:
- ./testing/autoconf/configs/:/etc/artemis/
- ./testing/test_entrypoints/entrypoint.bgpstreamlivetap.test:/root/entrypoint
- ./monitor-services/bgpstreamlivetap/core/bgpstreamlive.py:/root/core/bgpstreamlive.py
- ./testing/.coveragerc:/root/core/.coveragerc
bgpstreamkafkatap:
image: artemis_bgpstreamkafkatap
build: ./monitor-services/bgpstreamkafkatap
restart: always
depends_on:
- database
- prefixtree
- rabbitmq
- redis
expose:
- 3000
networks:
- artemis
environment:
MON_TIMEOUT_LAST_BGP_UPDATE: ${MON_TIMEOUT_LAST_BGP_UPDATE}
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REST_PORT: 3000
volumes:
- ./testing/autoconf/configs/:/etc/artemis/
- ./testing/test_entrypoints/entrypoint.bgpstreamkafkatap.test:/root/entrypoint
- ./monitor-services/bgpstreamkafkatap/core/bgpstreamkafka.py:/root/core/bgpstreamkafka.py
- ./testing/.coveragerc:/root/core/.coveragerc
bgpstreamhisttap:
image: artemis_bgpstreamhisttap
build: ./monitor-services/bgpstreamhisttap
restart: always
depends_on:
- database
- prefixtree
- rabbitmq
expose:
- 3000
networks:
- artemis
environment:
HISTORIC: "true"
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
REST_PORT: 3000
volumes:
- ./testing/autoconf/configs/:/etc/artemis/
- ./testing/test_entrypoints/entrypoint.bgpstreamhisttap.test:/root/entrypoint
- ./monitor-services/bgpstreamhisttap/core/bgpstreamhist.py:/root/core/bgpstreamhist.py
- ./testing/.coveragerc:/root/core/.coveragerc
exabgptap:
image: artemis_exabgptap
build: ./monitor-services/exabgptap
restart: always
depends_on:
- database
- prefixtree
- rabbitmq
- redis
expose:
- 3000
networks:
- artemis
environment:
MON_TIMEOUT_LAST_BGP_UPDATE: ${MON_TIMEOUT_LAST_BGP_UPDATE}
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REST_PORT: 3000
volumes:
- ./testing/autoconf/configs/:/etc/artemis/
- ./testing/test_entrypoints/entrypoint.exabgptap.test:/root/entrypoint
- ./monitor-services/exabgptap/core/exabgp_client.py:/root/core/exabgp_client.py
- ./testing/.coveragerc:/root/core/.coveragerc
autoignore:
image: artemis_autoignore
build: ./backend-services/autoignore/
restart: always
depends_on:
- database
- prefixtree
- rabbitmq
- postgres
expose:
- 3000
networks:
- artemis
environment:
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
REST_PORT: 3000
volumes:
- ./testing/autoconf/configs/:/etc/artemis/
- ./testing/test_entrypoints/entrypoint.autoignore.test:/root/entrypoint
- ./backend-services/autoignore/core/autoignore.py:/root/core/autoignore.py
- ./testing/.coveragerc:/root/core/.coveragerc
autostarter:
image: artemis_autostarter
build: ./backend-services/autostarter/
restart: always
depends_on:
- autoignore
- bgpstreamhisttap
- bgpstreamkafkatap
- bgpstreamlivetap
- database
- detection
- exabgptap
- mitigation
- notifier
- postgres
- prefixtree
- configuration
- fileobserver
- riperistap
networks:
- artemis
environment:
AUTO_RECOVER_PROCESS_STATE: ${AUTO_RECOVER_PROCESS_STATE}
CHECK_INTERVAL: 5
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
REST_PORT: 3000
TEST_ENV: "true"
volumes:
- ./testing/autoconf/configs/:/etc/artemis/
- ./testing/test_entrypoints/entrypoint.autostarter.test:/root/entrypoint
- ./backend-services/autostarter/core/autostarter.py:/root/core/autostarter.py
- ./testing/.coveragerc:/root/core/.coveragerc
configuration:
image: artemis_configuration
build: ./backend-services/configuration/
restart: always
depends_on:
- autoignore
- bgpstreamhisttap
- bgpstreamkafkatap
- bgpstreamlivetap
- database
- detection
- exabgptap
- mitigation
- notifier
- postgres
- prefixtree
- rabbitmq
- redis
- riperistap
expose:
- 3000
networks:
- artemis
environment:
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REST_PORT: 3000
volumes:
- ./testing/autoconf/configs/:/etc/artemis/
- ./testing/test_entrypoints/entrypoint.configuration.test:/root/entrypoint
- ./backend-services/configuration/core/configuration.py:/root/core/configuration.py
- ./testing/.coveragerc:/root/core/.coveragerc
database:
image: artemis_database
build: ./backend-services/database/
restart: always
depends_on:
- graphql
- notifier
- postgres
- prefixtree
- rabbitmq
- redis
expose:
- 3000
networks:
- artemis
environment:
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
DB_VERSION: ${DB_VERSION}
HASURA_HOST: ${HASURA_HOST}
HASURA_PORT: ${HASURA_PORT}
HASURA_GRAPHQL_ACCESS_KEY: ${HASURA_SECRET_KEY}
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REST_PORT: 3000
WITHDRAWN_HIJACK_THRESHOLD: ${WITHDRAWN_HIJACK_THRESHOLD}
HISTORIC: ${HISTORIC}
volumes:
- ./testing/autoconf/configs/:/etc/artemis/
- ./testing/test_entrypoints/entrypoint.database.test:/root/entrypoint
- ./backend-services/database/core/database.py:/root/core/database.py
- ./testing/.coveragerc:/root/core/.coveragerc
detection:
image: artemis_detection
build: ./backend-services/detection/
restart: always
depends_on:
- notifier
- database
- prefixtree
- rabbitmq
- redis
expose:
- 3000
networks:
- artemis
environment:
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REST_PORT: 3000
RPKI_VALIDATOR_ENABLED: ${RPKI_VALIDATOR_ENABLED}
RPKI_VALIDATOR_HOST: ${RPKI_VALIDATOR_HOST}
RPKI_VALIDATOR_PORT: ${RPKI_VALIDATOR_PORT}
TEST_ENV: "true"
volumes:
- ./testing/autoconf/configs/:/etc/artemis/
- ./testing/test_entrypoints/entrypoint.detection.test:/root/entrypoint
- ./backend-services/detection/core/detection.py:/root/core/detection.py
- ./testing/.coveragerc:/root/core/.coveragerc
fileobserver:
image: artemis_fileobserver
build: ./backend-services/fileobserver/
restart: always
depends_on:
- configuration
expose:
- 3000
networks:
- artemis
environment:
REST_PORT: 3000
volumes:
- ./testing/autoconf/configs/:/etc/artemis/
- ./testing/test_entrypoints/entrypoint.fileobserver.test:/root/entrypoint
- ./backend-services/fileobserver/core/observer.py:/root/core/observer.py
- ./testing/.coveragerc:/root/core/.coveragerc
mitigation:
image: artemis_mitigation
build: ./backend-services/mitigation/
restart: always
depends_on:
- rabbitmq
- database
- prefixtree
expose:
- 3000
networks:
- artemis
environment:
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
REST_PORT: 3000
volumes:
- ./testing/autoconf/configs/:/etc/artemis/
- ./testing/test_entrypoints/entrypoint.mitigation.test:/root/entrypoint
- ./backend-services/mitigation/core/mitigation.py:/root/core/mitigation.py
- ./testing/.coveragerc:/root/core/.coveragerc
notifier:
image: artemis_notifier
build: ./backend-services/notifier/
restart: always
depends_on:
- rabbitmq
expose:
- 3000
networks:
- artemis
environment:
ARTEMIS_WEB_HOST: ${ARTEMIS_WEB_HOST}
HIJACK_LOG_FILTER: ${HIJACK_LOG_FILTER}
HIJACK_LOG_FIELDS: ${HIJACK_LOG_FIELDS}
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
REST_PORT: 3000
volumes:
- ./testing/autoconf/configs/:/etc/artemis/
- ./testing/test_entrypoints/entrypoint.notifier.test:/root/entrypoint
- ./backend-services/notifier/core/notifier.py:/root/core/notifier.py
- ./testing/.coveragerc:/root/core/.coveragerc
prefixtree:
image: artemis_prefixtree
build: ./backend-services/prefixtree/
restart: always
depends_on:
- rabbitmq
- redis
expose:
- 3000
networks:
- artemis
environment:
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
REST_PORT: 3000
volumes:
- ./testing/autoconf/configs/:/etc/artemis/
- ./testing/test_entrypoints/entrypoint.prefixtree.test:/root/entrypoint
- ./backend-services/prefixtree/core/prefixtree.py:/root/core/prefixtree.py
- ./testing/.coveragerc:/root/core/.coveragerc
redis:
image: redis:latest
container_name: redis
restart: always
networks:
- artemis
expose:
- ${REDIS_PORT}
volumes:
- ./backend-services/redis/configs/redis.conf:/usr/local/etc/redis/redis.conf
command: ["redis-server", "/usr/local/etc/redis/redis.conf"]
rabbitmq:
image: rabbitmq:3.9.20-management-alpine
container_name: rabbitmq
restart: always
networks:
- artemis
expose:
- ${RABBITMQ_PORT}
environment:
RABBITMQ_IO_THREAD_POOL_SIZE: 16
volumes:
- ./other/rabbitmq/enabled-plugins:/etc/rabbitmq/enabled_plugins
postgres:
image: timescale/timescaledb:2.8.1-pg14
container_name: postgres
restart: always
networks:
- artemis
expose:
- ${DB_PORT}
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
DB_BACKUP: ${DB_BACKUP}
DB_AUTOCLEAN: ${DB_AUTOCLEAN}
DB_HIJACK_DORMANT: ${DB_HIJACK_DORMANT}
volumes:
- ./other/db/init.sql:/docker-entrypoint-initdb.d/zinit.sql
- ./other/db/data/:/docker-entrypoint-initdb.d/data/
- ./other/db/libs/:/docker-entrypoint-initdb.d/libs/
pg-amqp-bridge:
image: curiouzk0d3r/pg-amqp-bridge:latest
container_name: pg-amqp-bridge
restart: always
depends_on:
- postgres
- database
- rabbitmq
networks:
- artemis
environment:
- POSTGRESQL_URI=postgres://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}?application_name=pg-amqp-bridge
- AMQP_URI=amqp://${RABBITMQ_USER}:${RABBITMQ_PASS}@${RABBITMQ_HOST}:${RABBITMQ_PORT}//
- BRIDGE_CHANNELS=events:amq.direct
volumes:
- ./backend-services/database/wait-for:/root/wait-for
command: ["/root/wait-for", "${RABBITMQ_HOST}:${RABBITMQ_PORT}", "-t", "0", "--", "pg-amqp-bridge"]
graphql:
image: hasura/graphql-engine:v2.10.2
container_name: graphql
restart: always
depends_on:
- postgres
networks:
- artemis
expose:
- ${HASURA_PORT}
environment:
HASURA_GRAPHQL_DATABASE_URL: postgres://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}?application_name=graphql
HASURA_GRAPHQL_ACCESS_KEY: ${HASURA_SECRET_KEY}
HASURA_GRAPHQL_ENABLE_CONSOLE: ${HASURA_GUI}
HASURA_GRAPHQL_JWT_SECRET: '{"type":"HS256", "key":"${JWT_SECRET_KEY}"}'
command:
- graphql-engine
- serve
networks:
artemis: