forked from fabiogjardim/mds
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
748 lines (705 loc) · 22.7 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
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
version: '3'
x-airflow-common:
&airflow-common
image: fjardim/mds-airflow
environment:
&airflow-common-env
AIRFLOW__CORE__EXECUTOR: CeleryExecutor
AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: postgresql+psycopg2://admin:admin@postgres/airflow
AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql+psycopg2://admin:admin@postgres/airflow
AIRFLOW__CELERY__RESULT_BACKEND: db+postgresql://admin:admin@postgres/airflow
AIRFLOW__CELERY__BROKER_URL: redis://:@redis:6379/0
AIRFLOW__CORE__FERNET_KEY: ''
AIRFLOW__CORE__DAGS_ARE_PAUSED_AT_CREATION: 'true'
AIRFLOW__CORE__LOAD_EXAMPLES: 'false'
AIRFLOW__API__AUTH_BACKENDS: 'airflow.api.auth.backend.basic_auth'
#_PIP_ADDITIONAL_REQUIREMENTS: ${_PIP_ADDITIONAL_REQUIREMENTS:- apache-airflow-providers-apache-spark}
volumes:
- ./airflow/dags:/opt/airflow/dags
- ./airflow/logs:/opt/airflow/logs
- ./airflow/plugins:/opt/airflow/plugins
- ./scripts:/scripts
user: "${AIRFLOW_UID:-50000}:0"
depends_on:
&airflow-common-depends-on
redis:
condition: service_healthy
postgres:
condition: service_healthy
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_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
redis:
image: fjardim/mds-redis
container_name: redis
hostname: redis
expose:
- 6379
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 30s
retries: 50
airflow-webserver:
<<: *airflow-common
container_name: airflow-webserver
hostname: airflow-webserver
command: webserver
user: root
ports:
- 8180:8080
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8080/health"]
interval: 10s
timeout: 10s
retries: 5
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully
airflow-scheduler:
<<: *airflow-common
container_name: airflow-scheduler
hostname: airflow-scheduler
command: scheduler
healthcheck:
test: ["CMD-SHELL", 'airflow jobs check --job-type SchedulerJob --hostname "$${HOSTNAME}"']
interval: 10s
timeout: 10s
retries: 5
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully
airflow-worker:
<<: *airflow-common
container_name: airflow-worker
hostname: airflow-worker
command: celery worker
healthcheck:
test:
- "CMD-SHELL"
- 'celery --app airflow.executors.celery_executor.app inspect ping -d "celery@$${HOSTNAME}"'
interval: 10s
timeout: 10s
retries: 5
environment:
<<: *airflow-common-env
# Required to handle warm shutdown of the celery workers properly
# See https://airflow.apache.org/docs/docker-stack/entrypoint.html#signal-propagation
DUMB_INIT_SETSID: "0"
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully
airflow-triggerer:
<<: *airflow-common
container_name: airflow-triggerer
hostname: airflow-triggerer
command: triggerer
healthcheck:
test: ["CMD-SHELL", 'airflow jobs check --job-type TriggererJob --hostname "$${HOSTNAME}"']
interval: 10s
timeout: 10s
retries: 5
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully
airflow-init:
<<: *airflow-common
entrypoint: /bin/bash
# yamllint disable rule:line-length
command:
- -c
- |
function ver() {
printf "%04d%04d%04d%04d" $${1//./ }
}
airflow_version=$$(AIRFLOW__LOGGING__LOGGING_LEVEL=INFO && gosu airflow airflow version)
airflow_version_comparable=$$(ver $${airflow_version})
min_airflow_version=2.2.0
min_airflow_version_comparable=$$(ver $${min_airflow_version})
if (( airflow_version_comparable < min_airflow_version_comparable )); then
echo
echo -e "\033[1;31mERROR!!!: Too old Airflow version $${airflow_version}!\e[0m"
echo "The minimum Airflow version supported: $${min_airflow_version}. Only use this or higher!"
echo
exit 1
fi
if [[ -z "${AIRFLOW_UID}" ]]; then
echo
echo -e "\033[1;33mWARNING!!!: AIRFLOW_UID not set!\e[0m"
echo "If you are on Linux, you SHOULD follow the instructions below to set "
echo "AIRFLOW_UID environment variable, otherwise files will be owned by root."
echo "For other operating systems you can get rid of the warning with manually created .env file:"
echo " See: https://airflow.apache.org/docs/apache-airflow/stable/howto/docker-compose/index.html#setting-the-right-airflow-user"
echo
fi
one_meg=1048576
mem_available=$$(($$(getconf _PHYS_PAGES) * $$(getconf PAGE_SIZE) / one_meg))
cpus_available=$$(grep -cE 'cpu[0-9]+' /proc/stat)
disk_available=$$(df / | tail -1 | awk '{print $$4}')
warning_resources="false"
if (( mem_available < 4000 )) ; then
echo
echo -e "\033[1;33mWARNING!!!: Not enough memory available for Docker.\e[0m"
echo "At least 4GB of memory required. You have $$(numfmt --to iec $$((mem_available * one_meg)))"
echo
warning_resources="true"
fi
if (( cpus_available < 2 )); then
echo
echo -e "\033[1;33mWARNING!!!: Not enough CPUS available for Docker.\e[0m"
echo "At least 2 CPUs recommended. You have $${cpus_available}"
echo
warning_resources="true"
fi
if (( disk_available < one_meg * 10 )); then
echo
echo -e "\033[1;33mWARNING!!!: Not enough Disk space available for Docker.\e[0m"
echo "At least 10 GBs recommended. You have $$(numfmt --to iec $$((disk_available * 1024 )))"
echo
warning_resources="true"
fi
if [[ $${warning_resources} == "true" ]]; then
echo
echo -e "\033[1;33mWARNING!!!: You have not enough resources to run Airflow (see above)!\e[0m"
echo "Please follow the instructions to increase amount of resources available:"
echo " https://airflow.apache.org/docs/apache-airflow/stable/howto/docker-compose/index.html#before-you-begin"
echo
fi
mkdir -p /sources/logs /sources/dags /sources/plugins
chown -R "${AIRFLOW_UID}:0" /sources/{logs,dags,plugins}
exec /entrypoint airflow version
# yamllint enable rule:line-length
environment:
<<: *airflow-common-env
_AIRFLOW_DB_UPGRADE: 'true'
_AIRFLOW_WWW_USER_CREATE: 'true'
_AIRFLOW_WWW_USER_USERNAME: ${_AIRFLOW_WWW_USER_USERNAME:-airflow}
_AIRFLOW_WWW_USER_PASSWORD: ${_AIRFLOW_WWW_USER_PASSWORD:-airflow}
_PIP_ADDITIONAL_REQUIREMENTS: ''
user: "0:0"
volumes:
- ./airflow:/sources
airflow-cli:
<<: *airflow-common
container_name: airflow-cli
hostname: airflow-cli
profiles:
- debug
environment:
<<: *airflow-common-env
CONNECTION_CHECK_MAX_COUNT: "0"
# Workaround for entrypoint issue. See: https://github.com/apache/airflow/issues/16252
command:
- bash
- -c
- airflow
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
dbeaver:
image: fjardim/mds-dbeaver
#image: dbeaver/cloudbeaver:latest
container_name: dbeaver
hostname: dbeaver
#restart: unless-stopped
depends_on:
- postgres
#command: ./run-server.sh
#environment:
# CB_ADMIN_NAME: cbadmin
# CB_ADMIN_PASSWORD: cbadmin123
ports:
- "8010:8978"
volumes:
- ./scripts:/scripts
#- ./dbeaver:/opt/cloudbeaver/workspace
#- ./dbeaver/workspace/cloudbeaver.conf:/opt/cloudbeaver/conf/cloudbeaver.conf
#- ./dbeaver/workspace/initial-data.conf:/opt/cloudbeaver/conf/initial-data.conf
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