-
Notifications
You must be signed in to change notification settings - Fork 29
/
docker-compose.yml
180 lines (175 loc) · 4.61 KB
/
docker-compose.yml
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
version: "3"
services:
redis-cluster:
image: redis:7.2.2
container_name: cluster
command: redis-cli --cluster create 172.28.0.101:6377 172.28.0.102:6378 172.28.0.103:6379 172.28.0.104:6380 172.28.0.105:6381 172.28.0.106:6382 --cluster-replicas 1 --cluster-yes
environment:
- REDISCLI_AUTH=${REDIS_PASSWORD}
networks:
acapy_default:
ipv4_address: 172.28.0.107
depends_on:
- redis-node-1
- redis-node-2
- redis-node-3
- redis-node-4
- redis-node-5
- redis-node-6
redis-node-1:
image: redis:7.2.2
container_name: node1
command: ["redis-server", "/conf/redis.conf", "--port 6377"]
environment:
- REDISCLI_AUTH=${REDIS_PASSWORD}
ports:
- 6377:6377
volumes:
- ./redis.conf:/conf/redis.conf
networks:
acapy_default:
ipv4_address: 172.28.0.101
redis-node-2:
image: redis:7.2.2
container_name: node2
command: ["redis-server", "/conf/redis.conf", "--port 6378"]
environment:
- REDISCLI_AUTH=${REDIS_PASSWORD}
ports:
- 6378:6378
volumes:
- ./redis.conf:/conf/redis.conf
networks:
acapy_default:
ipv4_address: 172.28.0.102
redis-node-3:
image: redis:7.2.2
container_name: node3
command: ["redis-server", "/conf/redis.conf", "--port 6379"]
environment:
- REDISCLI_AUTH=${REDIS_PASSWORD}
ports:
- 6379:6379
volumes:
- ./redis.conf:/conf/redis.conf
networks:
acapy_default:
ipv4_address: 172.28.0.103
redis-node-4:
image: redis:7.2.2
container_name: node4
command: ["redis-server", "/conf/redis.conf", "--port 6380"]
environment:
- REDISCLI_AUTH=${REDIS_PASSWORD}
ports:
- 6380:6380
volumes:
- ./redis.conf:/conf/redis.conf
networks:
acapy_default:
ipv4_address: 172.28.0.104
redis-node-5:
image: redis:7.2.2
container_name: node5
command: ["redis-server", "/conf/redis.conf", "--port 6381"]
environment:
- REDISCLI_AUTH=${REDIS_PASSWORD}
ports:
- 6381:6381
volumes:
- ./redis.conf:/conf/redis.conf
networks:
acapy_default:
ipv4_address: 172.28.0.105
redis-node-6:
image: redis:7.2.2
container_name: node6
command: ["redis-server", "/conf/redis.conf", "--port 6382"]
environment:
- REDISCLI_AUTH=${REDIS_PASSWORD}
ports:
- 6382:6382
volumes:
- ./redis.conf:/conf/redis.conf
networks:
acapy_default:
ipv4_address: 172.28.0.106
relay:
image: redis-relay
build:
context: ..
dockerfile: docker/services/Dockerfile
ports:
- 8071:8081
- 7001:7001
environment:
- REDIS_SERVER_URL=redis://default:[email protected]:6379
- TOPIC_PREFIX=acapy
- STATUS_ENDPOINT_HOST=0.0.0.0
- STATUS_ENDPOINT_PORT=7001
- STATUS_ENDPOINT_API_KEY=test_api_key_1
- INBOUND_TRANSPORT_CONFIG=[["http", "0.0.0.0", "8071"],["ws", "0.0.0.0", "8081"]]
- WAIT_BEFORE_HOSTS=5
- WAIT_HOSTS=redis-node-3:6379
- WAIT_HOSTS_TIMEOUT=120
- WAIT_SLEEP_INTERVAL=1
- WAIT_HOST_CONNECT_TIMEOUT=60
depends_on:
- redis-cluster
networks:
- acapy_default
command:
[
"/bin/sh",
"-c",
'/wait && python -m redis_events.v1_0.services.relay.relay "$$@"',
"--",
]
deliverer:
image: redis-deliverer
build:
context: ..
dockerfile: docker/services/Dockerfile
ports:
- 7002:7002
environment:
- REDIS_SERVER_URL=redis://default:[email protected]:6379
- TOPIC_PREFIX=acapy
- STATUS_ENDPOINT_HOST=0.0.0.0
- STATUS_ENDPOINT_PORT=7002
- STATUS_ENDPOINT_API_KEY=test_api_key_2
- WAIT_BEFORE_HOSTS=5
- WAIT_HOSTS=redis-node-3:6379
- WAIT_HOSTS_TIMEOUT=120
- WAIT_SLEEP_INTERVAL=1
- WAIT_HOST_CONNECT_TIMEOUT=60
depends_on:
- redis-cluster
networks:
- acapy_default
command:
[
"/bin/sh",
"-c",
'/wait && python -m redis_events.v1_0.services.deliverer.deliver "$$@"',
"--",
]
#*************************************************************
# acapy-redis_queue: aca-py that produces redis events. *
#*************************************************************
acapy-redis-queue:
image: acapy-redis-queue
build:
context: ..
dockerfile: docker/Dockerfile
ports:
- "3001:3001"
depends_on:
- redis-node-3
command: start --arg-file default.yml
networks:
- acapy_default
networks:
acapy_default:
external: true
name: ${NETWORK_NAME}