forked from wireapp/wire-server
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfederation-v2.yaml
More file actions
283 lines (266 loc) · 7.58 KB
/
Copy pathfederation-v2.yaml
File metadata and controls
283 lines (266 loc) · 7.58 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
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
networks:
demo_wire:
external: false
coredns:
external: false
services:
brig_schema-v2:
container_name: brig-schema-federation-v2
image: quay.io/wire/brig-schema:5.14.0
command: --host cassandra --keyspace brig_test_federation_v2 --replication-factor 1
depends_on:
cassandra:
condition: service_healthy
deploy:
restart_policy:
condition: on-failure
networks:
- demo_wire
brig-v2:
container_name: brig-federation-v2
image: quay.io/wire/brig:5.14.0
volumes:
- ./federation-v2:/etc/wire/brig/conf
networks:
- demo_wire
ports:
- "127.0.0.1:23082:8080"
healthcheck: &haskell_health_check
test: "curl --fail localhost:8080/i/status"
depends_on:
brig_schema-v2:
condition: service_completed_successfully
aws_cli:
condition: service_completed_successfully
init_vhosts:
condition: service_completed_successfully
environment:
- AWS_REGION=eu-west-1
- AWS_ACCESS_KEY_ID=dummykey
- AWS_SECRET_ACCESS_KEY=dummysecret
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD}
galley_schema-v2:
container_name: galley-schema-federation-v2
image: quay.io/wire/galley-schema:5.14.0
command: --host cassandra --keyspace galley_test_federation_v2 --replication-factor 1
depends_on:
cassandra:
condition: service_healthy
deploy:
restart_policy:
condition: on-failure
networks:
- demo_wire
galley-v2:
container_name: galley-federation-v2
image: quay.io/wire/galley:5.14.0
volumes:
- ./federation-v2:/etc/wire/galley/conf
networks:
- demo_wire
ports:
- "127.0.0.1:23085:8080"
healthcheck: *haskell_health_check
depends_on:
galley_schema-v2:
condition: service_completed_successfully
aws_cli:
condition: service_completed_successfully
init_vhosts:
condition: service_completed_successfully
environment:
- AWS_REGION=eu-west-1
- AWS_ACCESS_KEY_ID=dummykey
- AWS_SECRET_ACCESS_KEY=dummysecret
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD}
cargohold-v2:
container_name: cargohold-federation-v2
image: quay.io/wire/cargohold:5.14.0
volumes:
- ./federation-v2:/etc/wire/cargohold/conf
networks:
- demo_wire
ports:
- "127.0.0.1:23084:8080"
healthcheck: *haskell_health_check
depends_on:
aws_cli:
condition: service_completed_successfully
environment:
- AWS_REGION=eu-west-1
- AWS_ACCESS_KEY_ID=dummykey
- AWS_SECRET_ACCESS_KEY=dummysecret
gundeck_schema-v2:
container_name: gundeck-schema-federation-v2
image: quay.io/wire/gundeck-schema:5.14.0
command: --host cassandra --keyspace gundeck_test_federation_v2 --replication-factor 1
depends_on:
cassandra:
condition: service_healthy
deploy:
restart_policy:
condition: on-failure
networks:
- demo_wire
gundeck-v2:
container_name: gundeck-federation-v2
image: quay.io/wire/gundeck:5.14.0
volumes:
- ./federation-v2:/etc/wire/gundeck/conf
networks:
- demo_wire
ports:
- "127.0.0.1:23086:8080"
healthcheck: *haskell_health_check
depends_on:
gundeck_schema-v2:
condition: service_completed_successfully
aws_cli:
condition: service_completed_successfully
redis-v2:
condition: service_started
environment:
- AWS_REGION=eu-west-1
- AWS_ACCESS_KEY_ID=dummykey
- AWS_SECRET_ACCESS_KEY=dummysecret
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD}
spar_schema-v2:
container_name: spar-schema-federation-v2
image: quay.io/wire/spar-schema:5.14.0
command: --host cassandra --keyspace spar_test_federation_v2 --replication-factor 1
depends_on:
cassandra:
condition: service_healthy
deploy:
restart_policy:
condition: on-failure
networks:
- demo_wire
spar-v2:
container_name: spar-federation-v2
image: quay.io/wire/spar:5.14.0
volumes:
- ./federation-v2:/etc/wire/spar/conf
networks:
- demo_wire
ports:
- "127.0.0.1:23088:8080"
healthcheck: *haskell_health_check
depends_on:
spar_schema-v2:
condition: service_completed_successfully
cannon-v2:
container_name: cannon-federation-v2
image: quay.io/wire/cannon:5.14.0
volumes:
- ./federation-v2:/etc/wire/cannon/conf
networks:
- demo_wire
ports:
- "127.0.0.1:23083:8080"
healthcheck: *haskell_health_check
environment:
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD}
depends_on:
gundeck_schema-v2:
condition: service_completed_successfully
federator-v2:
container_name: federator-federation-v2
image: quay.io/wire/federator:5.14.0
volumes:
- ./federation-v2:/etc/wire/federator/conf
networks:
- demo_wire
- coredns
extra_hosts:
- "host.docker.internal.:host-gateway"
ports:
- "127.0.0.1:23097:8080"
- "127.0.0.1:23098:8081"
# healthcheck: *haskell_health_check
healthcheck:
test: "true"
depends_on:
coredns-federation-v2:
condition: service_started
background_worker-v2:
container_name: background-worker-federation-v2
image: quay.io/wire/background-worker:5.14.0
volumes:
- ./federation-v2:/etc/wire/background-worker/conf
networks:
- demo_wire
ports:
- "127.0.0.1:23089:8080"
healthcheck: *haskell_health_check
depends_on:
init_vhosts:
condition: service_completed_successfully
gundeck_schema-v2:
condition: service_completed_successfully
environment:
- RABBITMQ_USERNAME=${RABBITMQ_USERNAME}
- RABBITMQ_PASSWORD=${RABBITMQ_PASSWORD}
proxy-v2:
container_name: proxy-federation-v2
image: quay.io/wire/proxy:5.14.0
volumes:
- ./federation-v2:/etc/wire/proxy/conf
networks:
- demo_wire
ports:
- "127.0.0.1:23087:8080"
healthcheck: *haskell_health_check
nginz-v2:
container_name: nginz-federation-v2
image: quay.io/wire/nginz:5.14.0
volumes:
- ./federation-v2:/etc/wire/
networks:
- demo_wire
ports:
- "127.0.0.1:23080:8080"
- "127.0.0.1:23443:8443"
depends_on:
brig-v2:
condition: service_healthy
galley-v2:
condition: service_healthy
gundeck-v2:
condition: service_healthy
cargohold-v2:
condition: service_healthy
cannon-v2:
condition: service_healthy
spar-v2:
condition: service_healthy
federator-v2:
condition: service_healthy
proxy-v2:
condition: service_healthy
background_worker-v2:
condition: service_healthy
# We have to run a separate redis instance for each version of wire-server we
# want. This is because gundeck just assumes the whole redis is for itself
redis-v2:
container_name: redis-federation-v2
image: redis:6.0-alpine
networks:
- demo_wire
# This coredns serves slightly different SRV records, so federator running in
# a docker container can talk to federator running on the host.
coredns-federation-v2:
image: docker.io/coredns/coredns:1.8.4
volumes:
- ./federation-v2/coredns-config:/coredns-config
entrypoint:
- /coredns
- -conf
- /coredns-config/Corefile
networks:
coredns:
ipv4_address: 172.20.1.5