forked from armadaproject/armada
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
230 lines (215 loc) · 5.74 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
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:15.6-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:3.0.2}
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:
- lookoutv2-migration
- eventingester
- lookoutingesterv2
working_dir: /app
env_file:
- developer/env/docker/server.env
command: sh -c "sleep 30 && ./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:
- scheduleringester
working_dir: /app
env_file:
- ./developer/env/docker/scheduler.env
command: ./scheduler run --config /config/insecure-armada.yaml
scheduler-migration:
container_name: scheduler-migration
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/docker/scheduleringester.env
depends_on:
- scheduler-migration
working_dir: /app
command: ./scheduleringester
executor:
container_name: executor
image: ${ARMADA_IMAGE:-gresearch/armada-bundle}:${ARMADA_IMAGE_TAG:-latest}
networks:
- kind
extra_hosts:
- "host.docker.internal:host-gateway"
ports:
- 9001:9001
- 4001:4000
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/docker/executor.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
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/docker/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
lookoutv2:
container_name: lookoutv2
image: ${ARMADA_IMAGE:-gresearch/armada-lookout-bundle}:${ARMADA_IMAGE_TAG:-latest}
networks:
- kind
ports:
- "10000:10000"
- "4005:4000"
depends_on:
- lookoutingesterv2
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/docker/lookoutv2.env
working_dir: "/app"
entrypoint: ./lookoutv2
lookoutv2-migration:
container_name: lookoutv2-migration
image: ${ARMADA_IMAGE:-gresearch/armada-lookout-bundle}:${ARMADA_IMAGE_TAG:-latest}
networks:
- kind
depends_on:
- postgres
volumes:
- "go-cache:/root/.cache/go-build:rw"
- "gomod-cache:/go/pkg/mod:rw"
env_file:
- ./developer/env/docker/lookoutv2.env
working_dir: "/app"
entrypoint: ./lookoutv2 --migrateDatabase
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/docker/lookoutv2.env
working_dir: /app
command: ./lookoutingesterv2
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"