-
Notifications
You must be signed in to change notification settings - Fork 9
/
docker-compose.yml
276 lines (255 loc) · 7.38 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
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
version: '3'
services:
##### Config Services - Start #####
config:
platform: linux/amd64
image: rtdl/rtdl-config:latest
container_name: rtdl_config
expose:
- 80
ports:
- 80:80
environment:
RTDL_DB_HOST: rtdl-db
RTDL_DB_PORT: 5432
RTDL_DB_USER: rtdl
RTDL_DB_PASSWORD: rtdl
RTDL_DB_DBNAME: rtdl_db
volumes:
- ./storage/configs:/app/configs
- ./constants:/app/constants
##### Config Services - End #####
##### Ingest Service - Start #####
ingest:
platform: linux/amd64
image: rtdl/rtdl-ingest:latest
container_name: rtdl_ingest
expose:
- 8080
ports:
- 8080:8080
environment:
KAFKA_URL: redpanda:29092
LISTENER_PORT: 8080
depends_on:
- redpanda
volumes:
- ./storage/configs:/app/configs
- ./constants:/app/constants
##### Ingest Service - End #####
##### Kafka/Redpanda Services - Start #####
redpanda:
user: root
platform: linux/amd64
image: docker.vectorized.io/vectorized/redpanda:v21.9.5
container_name: rtdl_redpanda
command:
- redpanda
- start
- --smp
- '1'
- --reserve-memory
- 0M
- --overprovisioned
- --node-id
- '0'
- --kafka-addr
- PLAINTEXT://0.0.0.0:29092,OUTSIDE://0.0.0.0:9092
- --advertise-kafka-addr
- PLAINTEXT://redpanda:29092,OUTSIDE://0.0.0.0:9092
# NOTE: Please use the latest version here!
volumes:
- ./storage/redpanda/data:/var/lib/redpanda/data
expose:
- 9092
- 9644
- 29092
ports:
- 9092:9092
- 29092:29092
healthcheck:
test: ["CMD","curl","-f","http://localhost:9644/v1/status/ready"]
start_period: 30s
interval: 5s
timeout: 2s
retries: 24
##### Kafka/Redpanda Services - End #####
##### Processing Services - Start #####
statefun-manager:
platform: linux/amd64
image: apache/flink-statefun:latest
container_name: rtdl_process-statefun-manager
expose:
- 6123
- 8081
environment:
ROLE: master
MASTER_HOST: statefun-manager
volumes:
- ./storage/rtdl-statefun-manager_store:/checkpoint-dir
- ./ingester/module.yaml:/opt/statefun/modules/ingester/module.yaml
- ./deltawriter/module.yaml:/opt/statefun/modules/deltawriter/module.yaml
depends_on:
- ingest
statefun-worker:
platform: linux/amd64
image: apache/flink-statefun:latest
container_name: rtdl_process-statefun-worker
expose:
- 6121
- 6122
environment:
ROLE: worker
MASTER_HOST: statefun-manager
volumes:
- ./storage/rtdl-statefun-worker_store:/checkpoint-dir
- ./ingester/module.yaml:/opt/statefun/modules/ingester/module.yaml
- ./deltawriter/module.yaml:/opt/statefun/modules/deltawriter/module.yaml
depends_on:
- statefun-manager
- redpanda
statefun-functions:
platform: linux/amd64
image: rtdl/process-statefun-functions:latest
container_name: rtdl_process-statefun-functions
expose:
- 8082
environment:
DREMIO_HOST: dremio
DREMIO_PORT: 9047
DREMIO_USERNAME: rtdl
DREMIO_PASSWORD: rtdl1234
DREMIO_MOUNT_PATH: /mnt/datastore
KAFKA_URL: redpanda:29092
volumes:
- ./storage/rtdl-data_store:/app/datastore
- ./storage/configs:/app/configs
- ./constants:/app/constants
depends_on:
redpanda:
condition: service_healthy
dremio:
condition: service_healthy
##### Processing Services - End #####
##### Dremio Services - Start #####
dremio:
platform: linux/amd64
image: dremio/dremio-oss
container_name: rtdl_dremio
volumes:
- ./storage/dremio/data:/opt/dremio/data
- ./storage/rtdl-data_store:/mnt/datastore
expose:
- 9047
- 31010
- 45678
ports:
- 9047:9047
- 31010:31010
- 45678:45678
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:9047/apiv2/server_status"]
interval: 10s
timeout: 5s
retries: 24
##### Dremio Services - End #####
##### Spark Services - Start #####
spark-master:
platform: linux/amd64
image: rtdl/rtdl-spark-master:latest
container_name: rtdl_spark-master
#user: root
environment:
- SPARK_MODE=master
- SPARK_RPC_AUTHENTICATION_ENABLED=no
- SPARK_RPC_ENCRYPTION_ENABLED=no
- SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
- SPARK_SSL_ENABLED=no
ports:
- 9090:9090
- 7077:7077
volumes:
- ./storage/spark:/app
spark-worker:
platform: linux/amd64
image: rtdl/rtdl-spark-worker:latest
container_name: rtdl_spark-worker
#user: root
environment:
- SPARK_MODE=worker
- SPARK_MASTER_URL=spark-master://spark:7077
- SPARK_WORKER_MEMORY=8G
- SPARK_WORKER_CORES=8
- SPARK_RPC_AUTHENTICATION_ENABLED=no
- SPARK_RPC_ENCRYPTION_ENABLED=no
- SPARK_LOCAL_STORAGE_ENCRYPTION_ENABLED=no
- SPARK_SSL_ENABLED=no
volumes:
- ./storage/spark:/app
delta-writer:
platform: linux/amd64
image: rtdl/rtdl-deltawriter:latest
container_name: rtdl_deltawriter
user: root
environment:
- SPARK_MASTER_HOST=spark-master
- SPARK_MASTER_PORT=7077
- FILE_STORE_ROOT=/app
- KAFKA_URL=redpanda:29092
expose:
- 8083
volumes:
- ./storage/spark:/app
- ./storage/configs:/usr/src/app/configs
##### Spark Services - End #####
##### Hadoop Services - Start #####
# namenode:
# image: bde2020/hadoop-namenode:2.0.0-hadoop3.2.1-java8
# container_name: namenode
# restart: always
# ports:
# - 9870:9870
# - 9000:9000
# volumes:
# - ./storage/hadoop/dfs/name:/hadoop/dfs/name
# environment:
# - CLUSTER_NAME=test
# env_file:
# - ./hadoop/hadoop.env
# datanode:
# image: bde2020/hadoop-datanode:2.0.0-hadoop3.2.1-java8
# container_name: datanode
# restart: always
# volumes:
# - ./storage/hadoop/dfs/data:/hadoop/dfs/data
# environment:
# SERVICE_PRECONDITION: "namenode:9870"
# env_file:
# - ./hadoop/hadoop.env
# resourcemanager:
# image: bde2020/hadoop-resourcemanager:2.0.0-hadoop3.2.1-java8
# container_name: resourcemanager
# restart: always
# environment:
# SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864"
# env_file:
# - ./hadoop/hadoop.env
# nodemanager1:
# image: bde2020/hadoop-nodemanager:2.0.0-hadoop3.2.1-java8
# container_name: nodemanager
# restart: always
# environment:
# SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864 resourcemanager:8088"
# env_file:
# - ./hadoop/hadoop.env
# historyserver:
# image: bde2020/hadoop-historyserver:2.0.0-hadoop3.2.1-java8
# container_name: historyserver
# restart: always
# environment:
# SERVICE_PRECONDITION: "namenode:9000 namenode:9870 datanode:9864 resourcemanager:8088"
# volumes:
# - ./storage/hadoop/yarn/timeline:/hadoop/yarn/timeline
# env_file:
# - ./hadoop/hadoop.env
##### Hadoop Services - End #####