forked from armadaproject/armada
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
306 lines (286 loc) · 7.51 KB
/
docker-compose.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
version: "3.8"
networks:
kind:
external: true
volumes:
gomod-cache:
go-cache:
services:
#
# Infrastructure services.
# A Kubernetes cluster (e.g., kind) must also be setup before starting Armada.
#
redis:
container_name: redis
image: redis
ports:
- 6379:6379
networks:
- kind
postgres:
container_name: postgres
image: postgres:12.13-alpine
environment:
- POSTGRES_PASSWORD=psw
ports:
- "5432:5432"
volumes:
- ./developer/dependencies/postgres-init.sh:/docker-entrypoint-initdb.d/init-database.sh
networks:
- kind
pulsar:
image: ${PULSAR_IMAGE:-apachepulsar/pulsar:2.10.4}
container_name: pulsar
volumes:
- ./developer/dependencies/pulsar.conf:/conf/pulsar.conf
entrypoint: bin/pulsar standalone
ports:
- 0.0.0.0:6650:6650
networks:
- kind
#
# Armada services.
#
server:
container_name: server
image: ${ARMADA_IMAGE:-gresearch/armada-bundle}:${ARMADA_IMAGE_TAG:-latest}
networks:
- kind
ports:
- 50051:50051
- 8080:8080
- 4000:4000
volumes:
- ./developer/config/insecure-armada.yaml:/config/insecure-armada.yaml
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
depends_on:
- eventingester
working_dir: /app
env_file:
- ./developer/env/server.env
command: ./server --config /config/insecure-armada.yaml
server-pulsar:
container_name: server
image: ${ARMADA_IMAGE:-gresearch/armada-bundle}:${ARMADA_IMAGE_TAG:-latest}
networks:
- kind
ports:
- 50051:50051
- 8080:8080
- 4000:4000
volumes:
- ./developer/config/insecure-armada.yaml:/config/insecure-armada.yaml
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
depends_on:
- eventingester
working_dir: /app
env_file:
- ./developer/env/server-pulsar.env
command: ./server --config /config/insecure-armada.yaml
scheduler:
container_name: scheduler
image: ${ARMADA_IMAGE:-gresearch/armada-bundle}:${ARMADA_IMAGE_TAG:-latest}
networks:
- kind
ports:
- 9000:9000
- 8081:8081
- 50052:50052
volumes:
- ./developer/config/insecure-armada.yaml:/config/insecure-armada.yaml
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
depends_on:
- postgresPulsarMigration
working_dir: /app
env_file:
- ./developer/env/scheduler.env
command: ./scheduler run --config /config/insecure-armada.yaml
postgresPulsarMigration:
container_name: postgresPulsarMigration
image: ${ARMADA_IMAGE:-gresearch/armada-bundle}:${ARMADA_IMAGE_TAG:-latest}
networks:
- kind
volumes:
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
working_dir: /app
command: ./scheduler migrateDatabase
scheduleringester:
container_name: scheduleringester
image: ${ARMADA_IMAGE:-gresearch/armada-bundle}:${ARMADA_IMAGE_TAG:-latest}
networks:
- kind
ports:
- 9003:9003
volumes:
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
env_file:
- ./developer/env/scheduleringester.env
working_dir: /app
command: ./scheduleringester
executor:
container_name: executor
image: ${ARMADA_IMAGE:-gresearch/armada-bundle}:${ARMADA_IMAGE_TAG:-latest}
networks:
- kind
ports:
- 9001:9001
- 4001:4000
depends_on:
- server
volumes:
- ./.kube/internal:/.kube
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
environment:
- KUBECONFIG=/.kube/config
env_file:
- ./developer/env/executor.env
working_dir: /app
command: ./executor
executor-pulsar:
container_name: executor
image: ${ARMADA_IMAGE:-gresearch/armada-bundle}:${ARMADA_IMAGE_TAG:-latest}
networks:
- kind
ports:
- 9001:9001
- 4001:4000
depends_on:
- server-pulsar
volumes:
- ./.kube/internal:/.kube
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
environment:
- KUBECONFIG=/.kube/config
env_file:
- ./developer/env/executor-pulsar.env
working_dir: /app
command: ./executor
binoculars:
container_name: binoculars
image: ${ARMADA_IMAGE:-gresearch/armada-bundle}:${ARMADA_IMAGE_TAG:-latest}
networks:
- kind
ports:
- 8082:8080
- 4002:4000
depends_on:
- server
volumes:
- ./.kube/internal:/.kube
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
environment:
- KUBECONFIG=/.kube/config
env_file:
- ./developer/env/binoculars.env
working_dir: /app
command: ./binoculars
eventingester:
container_name: eventingester
image: ${ARMADA_IMAGE:-gresearch/armada-bundle}:${ARMADA_IMAGE_TAG:-latest}
networks:
- kind
ports:
- 4003:4000
volumes:
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
working_dir: /app
command: ./eventingester
lookout:
container_name: lookout
image: ${ARMADA_IMAGE:-gresearch/armada-lookout-bundle}:${ARMADA_IMAGE_TAG:-latest}
networks:
- kind
ports:
- "8089:8080"
- "4004:4000"
depends_on:
- server
- lookoutingester
volumes:
- ./internal/lookout/ui/build:/app/internal/lookout/ui/build
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
env_file:
- ./developer/env/lookout.env
working_dir: /app
entrypoint: sh -c "./lookout --migrateDatabase && ./lookout"
lookoutv2:
container_name: lookoutv2
image: ${ARMADA_IMAGE:-gresearch/armada-lookout-bundle}:${ARMADA_IMAGE_TAG:-latest}
networks:
- kind
ports:
- "10000:10000"
- "4005:4000"
depends_on:
- server
- lookoutingesterv2
volumes:
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
env_file:
- ./developer/env/lookoutv2.env
working_dir: "/app"
entrypoint: sh -c "./lookoutv2 --migrateDatabase && ./lookoutv2"
lookoutingester:
container_name: lookoutingester
image: ${ARMADA_IMAGE:-gresearch/armada-lookout-bundle}:${ARMADA_IMAGE_TAG:-latest}
ports:
- 4006:4000
volumes:
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
networks:
- kind
command: ./lookoutingester
lookoutingesterv2:
container_name: lookoutingesterv2
image: ${ARMADA_IMAGE:-gresearch/armada-lookout-bundle}:${ARMADA_IMAGE_TAG:-latest}
ports:
- 4007:4000
volumes:
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
networks:
- kind
env_file:
- ./developer/env/lookoutv2.env
working_dir: /app
command: ./lookoutingesterv2
jobservice:
container_name: jobservice
image: ${ARMADA_IMAGE:-gresearch/armada-jobservice}:${ARMADA_IMAGE_TAG:-latest}
volumes:
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
networks:
- kind
ports:
- 60003:60003
- 4008:4000
depends_on:
- server
env_file:
- ./developer/env/jobservice.env
working_dir: /app
command: ./jobservice run
airflow:
container_name: airflow
image: python:3.8-buster
networks:
- kind
ports:
- 8081:8081
volumes:
- ".:/app:rw"
working_dir: "/app"
entrypoint: sh -c "developer/dependencies/airflow-start.sh"