-
Notifications
You must be signed in to change notification settings - Fork 5
/
docker-compose.yml
528 lines (493 loc) · 15.2 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
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
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
version: '3'
services:
zookeeper:
image: fjardim/mds-kafka-zookeeper
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
kafka-broker:
image: fjardim/mds-kafka-broker
container_name: kafka-broker
hostname: kafka-broker
ports:
- "9092:9092"
depends_on:
- zookeeper
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka-broker:9092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: kafka-broker:9092
CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_CONFLUENT_LICENSE_TOPIC_REPLICATION_FACTOR: 1
KAFKA_CONFLUENT_BALANCER_TOPIC_REPLICATION_FACTOR: 1
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
KAFKA_JMX_PORT: 9101
KAFKA_JMX_HOSTNAME: kafka-broker
#CONFLUENT_METRICS_REPORTER_BOOTSTRAP_SERVERS: kafka-broker:9092
#CONFLUENT_METRICS_REPORTER_TOPIC_REPLICAS: 1
CONFLUENT_METRICS_ENABLE: 'false'
CONFLUENT_SUPPORT_CUSTOMER_ID: 'anonymous'
# AUTO_REGISTER_SCHEMAS : 'false'
kafka-schema-registry:
image: fjardim/mds-kafka-schema-registry
hostname: kafka-schema-registry
container_name: kafka-schema-registry
depends_on:
- kafka-broker
ports:
- "8071:8081"
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: 'kafka-broker:9092'
SCHEMA_REGISTRY_LISTENERS: http://0.0.0.0:8081
kafka-connect:
image: fjardim/mds-kafka-connect
hostname: kafka-connect
container_name: kafka-connect
depends_on:
- kafka-broker
- kafka-schema-registry
- postgres
ports:
- "8083:8083"
environment:
CONNECT_BOOTSTRAP_SERVERS: 'kafka-broker:9092'
CONNECT_REST_ADVERTISED_HOST_NAME: connect
CONNECT_REST_PORT: 8083
CONNECT_GROUP_ID: connect-group
CONNECT_CONFIG_STORAGE_TOPIC: connect-configs
CONNECT_CONFIG_STORAGE_REPLICATION_FACTOR: 1
CONNECT_OFFSET_FLUSH_INTERVAL_MS: 10000
CONNECT_OFFSET_STORAGE_TOPIC: connect-offsets
CONNECT_OFFSET_STORAGE_REPLICATION_FACTOR: 1
CONNECT_STATUS_STORAGE_TOPIC: connect-status
CONNECT_STATUS_STORAGE_REPLICATION_FACTOR: 1
CONNECT_KEY_CONVERTER: org.apache.kafka.connect.json.JsonConverter
CONNECT_VALUE_CONVERTER: org.apache.kafka.connect.json.JsonConverter
CONNECT_INTERNAL_KEY_CONVERTER: org.apache.kafka.connect.json.JsonConverter
CONNECT_INTERNAL_VALUE_CONVERTER: org.apache.kafka.connect.json.JsonConverter
CONNECT_VALUE_CONVERTER_SCHEMA_REGISTRY_URL: http://kafka-schema-registry:8081
# CLASSPATH required due to CC-2422
CLASSPATH: /usr/share/java/monitoring-interceptors/monitoring-interceptors-6.1.0.jar
CONNECT_PRODUCER_INTERCEPTOR_CLASSES: "io.confluent.monitoring.clients.interceptor.MonitoringProducerInterceptor"
CONNECT_CONSUMER_INTERCEPTOR_CLASSES: "io.confluent.monitoring.clients.interceptor.MonitoringConsumerInterceptor"
CONNECT_PLUGIN_PATH: "/usr/share/java,/usr/share/confluent-hub-components"
CONNECT_LOG4J_LOGGERS: org.apache.zookeeper=ERROR,org.I0Itec.zkclient=ERROR,org.reflections=ERROR
kafka-control-center:
image: fjardim/mds-kafka-control-center
hostname: kafka-control-center
container_name: kafka-control-center
depends_on:
- kafka-broker
- kafka-schema-registry
- kafka-connect
- kafka-ksqldb-server
- kafka-ksqldb-cli
- postgres
ports:
- "9021:9021"
environment:
CONTROL_CENTER_BOOTSTRAP_SERVERS: 'kafka-broker:9092'
CONTROL_CENTER_CONNECT_CLUSTER: 'kafka-connect:8083'
CONTROL_CENTER_CONNECT_CONNECT-DEFAULT_CLUSTER: 'kafka-connect:8083'
CONTROL_CENTER_KSQL_KSQLDB1_URL: "http://kafka-ksqldb-server:8088"
CONTROL_CENTER_KSQL_KSQLDB1_ADVERTISED_URL: "http://kafka-ksqldb-server:8088"
CONTROL_CENTER_SCHEMA_REGISTRY_URL: "http://kafka-schema-registry:8081"
CONTROL_CENTER_REPLICATION_FACTOR: 1
CONTROL_CENTER_INTERNAL_TOPICS_PARTITIONS: 1
CONTROL_CENTER_MONITORING_INTERCEPTOR_TOPIC_PARTITIONS: 1
CONFLUENT_METRICS_TOPIC_REPLICATION: 1
CONTROL_CENTER_CONNECT_HEALTHCHECK_ENDPOINT: '/connectors'
PORT: 9021
kafka-ksqldb-server:
image: fjardim/mds-kafka-ksqldb-server
hostname: kafka-ksqldb-server
container_name: kafka-ksqldb-server
depends_on:
- kafka-broker
- kafka-connect
ports:
- "8068:8088"
environment:
KSQL_CONFIG_DIR: "/etc/ksql"
KSQL_BOOTSTRAP_SERVERS: "kafka-broker:9092"
KSQL_HOST_NAME: ksqldb-server
KSQL_LISTENERS: "http://0.0.0.0:8088"
KSQL_CACHE_MAX_BYTES_BUFFERING: 0
KSQL_KSQL_SCHEMA_REGISTRY_URL: "http://kafka-schema-registry:8081"
KSQL_PRODUCER_INTERCEPTOR_CLASSES: "io.confluent.monitoring.clients.interceptor.MonitoringProducerInterceptor"
KSQL_CONSUMER_INTERCEPTOR_CLASSES: "io.confluent.monitoring.clients.interceptor.MonitoringConsumerInterceptor"
KSQL_KSQL_CONNECT_URL: "http://kafka-connect:8083"
KSQL_KSQL_LOGGING_PROCESSING_TOPIC_REPLICATION_FACTOR: 1
KSQL_KSQL_LOGGING_PROCESSING_TOPIC_AUTO_CREATE: 'true'
KSQL_KSQL_LOGGING_PROCESSING_STREAM_AUTO_CREATE: 'true'
kafka-ksqldb-cli:
image: fjardim/mds-kafka-sqldb-cli
container_name: kafka-ksqldb-cli
hostname: kafka-ksqldb-cli
depends_on:
- kafka-broker
- kafka-connect
- kafka-ksqldb-server
entrypoint: /bin/sh
tty: true
kafka-rest-proxy:
image: fjardim/mds-kafka-rest
hostname: kafka-rest-proxy
depends_on:
- kafka-broker
- kafka-schema-registry
ports:
- 8082:8082
container_name: kafka-rest-proxy
environment:
KAFKA_REST_HOST_NAME: rest-proxy
KAFKA_REST_BOOTSTRAP_SERVERS: 'kafka-broker:9092'
KAFKA_REST_LISTENERS: "http://0.0.0.0:8082"
KAFKA_REST_SCHEMA_REGISTRY_URL: 'http://schema-registry:8081'
nifi:
image: fjardim/mds-nifi
container_name: nifi
hostname: nifi
volumes:
- ./nifi/flow:/opt/nifi/nifi-current/flowfile_repository
- ./nifi/util:/util
- ./scripts:/scripts
environment:
NIFI_WEB_HTTP_PORT: "9090"
SINGLE_USER_CREDENTIALS_USERNAME: "admin"
SINGLE_USER_CREDENTIALS_PASSWORD: "admin"
ports:
- "9090:9090"
- "8443:8443"
deploy:
resources:
limits:
memory: 2048m
postgres:
image: fjardim/mds-postgres
container_name: postgres
hostname: postgres
environment:
POSTGRES_USER: admin
POSTGRES_PASSWORD: admin
POSTGRES_DB: admin
ports:
- 5442:5432
volumes:
- ./postgres/postgres-db-volume:/var/lib/postgresql/data
- ./postgres:/util
- ./scripts:/scripts
#healthcheck:
# test: ["CMD", "pg_isready"]
# interval: 5s
# retries: 5
spark-master:
image: fjardim/mds-spark
hostname: spark-master
container_name: spark-master
command:
- /bin/sh
- -c
- |
/usr/local/spark/sbin/start-master.sh
start-notebook.sh --NotebookApp.token=''
#environment:
# PYSPARK_SUBMIT_ARGS: "--packages io.delta:delta-core_2.12:2.2.0,org.apache.hadoop:hadoop-aws:3.3.1,com.amazonaws:aws-java-sdk-bundle:1.12.392"
#env_file:
# - ./data/jupyter/jupyter.env
#working_dir: /home/root
#entrypoint: ["chmod", "+x", "/env/start-master.sh","/env","./start-master.sh"]
ports:
- 8889:8888
- 4040:4040
- 4041:4041
- 4042:4042
- 4043:4043
- 8180:8080
- 7077:7077
volumes:
- ./spark/util:/util/
- ./spark/work:/home/user
- ./spark/env:/env
- ./scripts:/scripts
#- ./jupyter/conf:/usr/local/spark/conf
#environment:
# - GRANT_SUDO=yes
# - CHOWN_HOME=yes
# - NB_USER=spark
# - NB_GID=100
# - CHOWN_HOME_OPTS='-R'
#- GEN_CERT=yes
# SPARK_MASTER: local[*]
# JUPYTER_PORT: 8889
#deploy:
# resources:
# limits:
# memory: 500m
spark-worker:
image: fjardim/mds-spark
hostname: spark-worker
container_name: spark-worker
#command: start-notebook.sh --NotebookApp.token=''
command:
- /bin/sh
- -c
- |
/usr/local/spark/sbin/start-worker.sh spark-master:7077
start-notebook.sh --NotebookApp.token=''
#command: /usr/local/spark/sbin/start-worker.sh jupyter-spark:7077
#environment:
# PYSPARK_SUBMIT_ARGS: "--packages io.delta:delta-core_2.12:2.2.0,org.apache.hadoop:hadoop-aws:3.3.1,com.amazonaws:aws-java-sdk-bundle:1.12.392"
env_file:
- ./spark/env/jupyter.env
#working_dir: /home/root
ports:
- 5040:4040
- 5041:4041
- 5042:4042
- 5043:4043
- 8881:8081
- 36533:36533
volumes:
- ./spark/util:/util/
- ./spark/work:/home/user
- ./scripts:/scripts
environment:
SPARK_MASTER: spark-master
# JUPYTER_PORT: 8889
depends_on:
- spark-master
#deploy:
# resources:
# limits:
# memory: 1g
metabase:
image: fjardim/mds-metabase
container_name: metabase
hostname: metabase
ports:
- "3000:3000"
depends_on:
- postgres
environment:
MB_DB_TYPE: postgres
MB_DB_DBNAME: metabase
MB_DB_PORT: 5432
MB_DB_USER: admin
MB_DB_PASS: admin
MB_DB_HOST: postgres
MB_PASSWORD_COMPLEXITY: "weak"
MB_PASSWORD_LENGTH: 4
elasticsearch:
image: fjardim/mds-elasticsearch
ports:
- "9200:9200"
- "9300:9300"
environment:
discovery.type: "single-node"
ES_JAVA_OPTS: "-Xms2g -Xmx2g"
xpack.monitoring.enabled: "true"
volumes:
- ./elastic/esdata:/usr/share/elasticsearch/data
- ./scripts:/scripts
kibana:
image: fjardim/mds-kibana
ports:
- "5601:5601"
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
depends_on:
- elasticsearch
trino:
image: fjardim/mds-trino
#image: trinodb/trino:latest
container_name: trino
hostname: trino
ports:
- "8080:8080"
depends_on:
- postgres
#- metastore
volumes:
- ./trino/catalog:/etc/trino/catalog
- ./trino/conf:/conf
- ./scripts:/scripts
hive:
hostname: hive
#image: apache/hive:4.0.0-alpha-2
image: fjardim/mds-hive
container_name: hive
environment:
AWS_ACCESS_KEY_ID: datalake
AWS_SECRET_ACCESS_KEY: datalake
HIVE_CUSTOM_CONF_DIR: "/hive_custom_conf"
SERVICE_NAME: hiveserver2
SERVICE_OPTS: "-Dhive.metastore.uris=thrift://metastore:9083"
IS_RESUME: "true"
#HIVE_VERSION: "3.1.3"
ports:
- "10000:10000"
- "10002:10002"
depends_on:
- hive-metastore
user: root
volumes:
- ./hive/conf:/hive_custom_conf
- ./hive:/util
hive-metastore:
hostname: metastore
image: fjardim/mds-hive-metastore
#image: apache/hive:4.0.0-alpha-2
container_name: metastore
environment:
AWS_ACCESS_KEY_ID: datalake
AWS_SECRET_ACCESS_KEY: datalake
HIVE_CUSTOM_CONF_DIR: "/hive_custom_conf"
SERVICE_NAME: metastore
#SERVICE_OPTS: "-Dhive.metastore.uris=thrift://metastore:9083"
IS_RESUME: "true"
DB_DRIVER: postgres
SERVICE_OPTS: "-Djavax.jdo.option.ConnectionDriverName=org.postgresql.Driver -Djavax.jdo.option.ConnectionURL=jdbc:postgresql://postgres:5432/metastore_db -Djavax.jdo.option.ConnectionUserName=admin -Djavax.jdo.option.ConnectionPassword=admin"
ports:
- "9083:9083"
depends_on:
- postgres
user: root
volumes:
- ./hive/meta:/opt/hive/data/warehouse
- ./hive/conf:/hive_custom_conf
- ./hive:/util
minio:
image: fjardim/mds-minio
container_name: minio
command: server --console-address ":9001" /data
ports:
- "9050:9000"
- "9051:9001"
hostname: minio
environment:
MINIO_ROOT_USER: admin
MINIO_ROOT_PASSWORD: minioadmin
MINIO_ACCESS_KEY: datalake
MINIO_SECRET_KEY: datalake
volumes:
- ./minio/data1:/data
- ./scripts:/scripts
superset:
env_file: ./superset/docker/env-non-dev
image: fjardim/mds-superset
container_name: superset_app
hostname: superset_app
command: ["/app/docker/docker-bootstrap.sh", "app-gunicorn"]
user: "root"
restart: unless-stopped
ports:
- 8088:8088
depends_on:
- postgres
#- redis
- trino
volumes:
- ./superset/docker:/app/docker
- ./superset/superset_home:/app/superset_home
- ./scripts:/scripts
# pinot-zookeeper:
# image: fjardim/mds-pinot-zookeeper
# container_name: pinot-zookeeper
# ports:
# - "2182:2181"
# environment:
# ZOOKEEPER_CLIENT_PORT: 2181
# ZOOKEEPER_TICK_TIME: 2000
# pinot-controller:
# image: fjardim/mds-pinot
# command: "StartController -zkAddress pinot-zookeeper:2181"
# container_name: pinot-controller
# restart: unless-stopped
# ports:
# - "9000:9000"
# environment:
# JAVA_OPTS: "-Dplugins.dir=/opt/pinot/plugins -Xms1G -Xmx4G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Xloggc:gc-pinot-controller.log"
# depends_on:
# - pinot-zookeeper
# pinot-broker:
# image: fjardim/mds-pinot
# command: "StartBroker -zkAddress pinot-zookeeper:2181"
# restart: unless-stopped
# container_name: "pinot-broker"
# ports:
# - "8099:8099"
# environment:
# JAVA_OPTS: "-Dplugins.dir=/opt/pinot/plugins -Xms4G -Xmx4G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Xloggc:gc-pinot-broker.log"
# depends_on:
# - pinot-controller
# pinot-server:
# image: fjardim/mds-pinot
# command: "StartServer -zkAddress pinot-zookeeper:2181"
# restart: unless-stopped
# container_name: "pinot-server"
# ports:
# - "8098:8098"
# environment:
# JAVA_OPTS: "-Dplugins.dir=/opt/pinot/plugins -Xms4G -Xmx16G -XX:+UseG1GC -XX:MaxGCPauseMillis=200 -Xloggc:gc-pinot-server.log"
# depends_on:
# - pinot-broker
# - kafka-broker
namenode:
image: fjardim/mds-namenode
container_name: namenode
hostname: namenode
volumes:
- ./hadoop/hdfs/namenode:/hadoop/dfs/name
- ./hadoop/util:/util
env_file:
- ./hadoop/hadoop.env
ports:
- "9870:9870"
deploy:
resources:
limits:
memory: 500m
datanode:
image: fjardim/mds-datanode
container_name: datanode
hostname: datanode
volumes:
- ./hadoop/hdfs/datanode:/hadoop/dfs/data
- ./hadoop/util:/util
env_file:
- ./hadoop/hadoop.env
environment:
SERVICE_PRECONDITION: "namenode:9870"
depends_on:
- namenode
ports:
- "9864:9864"
deploy:
resources:
limits:
memory: 500m
hue:
image: fjardim/mds-hue
hostname: hue
container_name: hue
dns: 8.8.8.8
ports:
- "8888:8888"
volumes:
- ./hue/hue.ini:/usr/share/hue/desktop/conf/z-hue.ini
depends_on:
- "postgres"
deploy:
resources:
limits:
memory: 500m