forked from FORTH-ICS-INSPIRE/artemis
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.testrpki.yaml
90 lines (89 loc) · 3.15 KB
/
docker-compose.testrpki.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
version: '3'
services:
backend:
image: artemis_backend
build: ./backend/
container_name: backend
depends_on:
- rabbitmq
- postgres
networks:
- artemis
expose:
- ${BACKEND_SUPERVISOR_PORT}
- ${REDIS_PORT}
environment:
ARTEMIS_WEB_HOST: ${ARTEMIS_WEB_HOST}
RABBITMQ_USER: ${RABBITMQ_USER}
RABBITMQ_PASS: ${RABBITMQ_PASS}
RABBITMQ_HOST: ${RABBITMQ_HOST}
RABBITMQ_PORT: ${RABBITMQ_PORT}
DB_USER: ${DB_USER}
DB_PASS: ${DB_PASS}
DB_HOST: ${DB_HOST}
DB_PORT: ${DB_PORT}
DB_NAME: ${DB_NAME}
DB_VERSION: ${DB_VERSION}
REDIS_HOST: ${REDIS_HOST}
REDIS_PORT: ${REDIS_PORT}
BACKEND_SUPERVISOR_HOST: ${BACKEND_SUPERVISOR_HOST}
BACKEND_SUPERVISOR_PORT: ${BACKEND_SUPERVISOR_PORT}
GUI_ENABLED: "false"
BULK_TIMER: 0.1
HIJACK_LOG_FILTER: ${HIJACK_LOG_FILTER}
MON_TIMEOUT_LAST_BGP_UPDATE: ${MON_TIMEOUT_LAST_BGP_UPDATE}
HIJACK_LOG_FIELDS: ${HIJACK_LOG_FIELDS}
WITHDRAWN_HIJACK_THRESHOLD: ${WITHDRAWN_HIJACK_THRESHOLD}
RPKI_VALIDATOR_ENABLED: "true"
RPKI_VALIDATOR_HOST: ${RPKI_VALIDATOR_HOST}
RPKI_VALIDATOR_PORT: ${RPKI_VALIDATOR_PORT}
TEST_ENV: "true"
volumes:
- ./tester/rpki/configs/:/etc/artemis/
- ./tester/rpki/supervisor.d/:/etc/supervisor/conf.d/
- ./tester/entrypoint.test:/root/entrypoint
- ./tester/.coveragerc:/root/core/.coveragerc
rabbitmq:
image: rabbitmq:3.7.8-management-alpine
container_name: rabbitmq
restart: always
networks:
- artemis
expose:
- ${RABBITMQ_PORT}
volumes:
- ./other/rabbitmq/enabled-plugins:/etc/rabbitmq/enabled_plugins
postgres:
image: timescale/timescaledb:1.1.0-pg10
container_name: postgres
restart: always
networks:
- artemis
expose:
- ${DB_PORT}
environment:
POSTGRES_DB: ${DB_NAME}
POSTGRES_USER: ${DB_USER}
POSTGRES_PASSWORD: ${DB_PASS}
volumes:
- ./tester/rpki/db/init.sql:/docker-entrypoint-initdb.d/zinit.sql
- ./tester/rpki/db/data/:/docker-entrypoint-initdb.d/data/
- ./tester/rpki/db/libs/:/docker-entrypoint-initdb.d/libs/
pg-amqp-bridge:
image: subzerocloud/pg-amqp-bridge:0.0.6
container_name: pg-amqp-bridge
depends_on:
- postgres
- backend
- rabbitmq
networks:
- artemis
environment:
- POSTGRESQL_URI=postgres://${DB_USER}:${DB_PASS}@${DB_HOST}:${DB_PORT}/${DB_NAME}
- AMQP_URI=amqp://${RABBITMQ_HOST}//
- BRIDGE_CHANNELS=events:amq.direct
volumes:
- ./backend/wait-for:/root/wait-for
command: ["/root/wait-for", "${RABBITMQ_HOST}:${RABBITMQ_PORT}", "-t", "0", "--", "pg-amqp-bridge"]
networks:
artemis: