forked from data-catering/insta-infra
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
1511 lines (1496 loc) · 48.8 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
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
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
x-airflow-common:
&airflow-common
# In order to add custom dependencies or upgrade provider packages you can use your extended image.
# Comment the image line, place your Dockerfile in the directory where you placed the docker-compose.yaml
# and uncomment the "build" line below, Then run `docker-compose build` to build the images.
image: ${AIRFLOW_IMAGE_NAME:-apache/airflow:2.10.0}
# build: .
environment:
&airflow-common-env
AIRFLOW__CORE__EXECUTOR: CeleryExecutor
AIRFLOW__DATABASE__SQL_ALCHEMY_CONN: "postgresql+psycopg2://${POSTGRES_PASSWORD:-postgres}:${POSTGRES_USER:-postgres}@postgres/airflow"
AIRFLOW__CELERY__RESULT_BACKEND: "db+postgresql://${POSTGRES_PASSWORD:-postgres}:${POSTGRES_USER:-postgres}@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: 'true'
AIRFLOW__API__AUTH_BACKENDS: 'airflow.api.auth.backend.basic_auth,airflow.api.auth.backend.session'
# yamllint disable rule:line-length
# Use simple http server on scheduler for health checks
# See https://airflow.apache.org/docs/apache-airflow/stable/administration-and-deployment/logging-monitoring/check-health.html#scheduler-health-check-server
# yamllint enable rule:line-length
AIRFLOW__SCHEDULER__ENABLE_HEALTH_CHECK: 'true'
# WARNING: Use _PIP_ADDITIONAL_REQUIREMENTS option ONLY for a quick checks
# for other purpose (development, test and especially production usage) build/extend Airflow image.
_PIP_ADDITIONAL_REQUIREMENTS: ${_PIP_ADDITIONAL_REQUIREMENTS:-}
# The following line can be used to set a custom config file, stored in the local config folder
# If you want to use it, outcomment it and replace airflow.cfg with the name of your config file
# AIRFLOW_CONFIG: '/opt/airflow/config/airflow.cfg'
volumes:
- ${AIRFLOW_PROJ_DIR:-.}/dags:/opt/airflow/dags
- ${AIRFLOW_PROJ_DIR:-.}/logs:/opt/airflow/logs
- ${AIRFLOW_PROJ_DIR:-.}/config:/opt/airflow/config
- ${AIRFLOW_PROJ_DIR:-.}/plugins:/opt/airflow/plugins
user: "${AIRFLOW_UID:-50000}:0" #check .env too as it needs to be declared for other airflow dependent containers
depends_on:
&airflow-common-depends-on
redis:
condition: service_healthy
postgres:
condition: service_started
# condition: service_healthy #removed as postgres is shared between all services and postegres is launched by postgres-data which seeds info into the DB
services:
activemq:
container_name: activemq
environment:
- "ARTEMIS_USER=${ARTEMIS_USER:-artemis}"
- "ARTEMIS_PASSWORD=${ARTEMIS_PASSWORD:-artemis}"
healthcheck:
interval: 15s
retries: 3
test: [CMD-SHELL, "curl -k -f http://localhost:8161/admin"]
timeout: 5s
image: "apache/activemq-artemis:${ACTIVEMQ_VERSION:-2.34.0}"
ports:
- "61616:61616"
- "8161:8161"
airflow:
container_name: airflow
<<: *airflow-common
command: webserver
ports:
- "8080:8080"
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8080/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
restart: always
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully
airflow-scheduler:
condition: service_started
airflow-worker:
condition: service_started
airflow-triggerer:
condition: service_started
airflow-scheduler:
container_name: airflow-scheduler
<<: *airflow-common
command: scheduler
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:8974/health"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
restart: always
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully
airflow-worker:
container_name: airflow-worker
<<: *airflow-common
command: celery worker
healthcheck:
# yamllint disable rule:line-length
test:
- "CMD-SHELL"
- 'celery --app airflow.providers.celery.executors.celery_executor.app inspect ping -d "celery@$${HOSTNAME}" || celery --app airflow.executors.celery_executor.app inspect ping -d "celery@$${HOSTNAME}"'
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
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"
restart: always
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully
airflow-triggerer:
container_name: airflow-triggerer
<<: *airflow-common
command: triggerer
healthcheck:
test: ["CMD-SHELL", 'airflow jobs check --job-type TriggererJob --hostname "$${HOSTNAME}"']
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
restart: always
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully
airflow-init:
container_name: airflow-init
<<: *airflow-common
entrypoint: /bin/bash
# yamllint disable rule:line-length
command:
- -c
- |
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_MIGRATE: '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_PROJ_DIR:-.}:/sources
airflow-cli:
container_name: airflow-cli
<<: *airflow-common
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
# You can enable flower by adding "--profile flower" option e.g. docker-compose --profile flower up
# or by explicitly targeted on the command line e.g. docker-compose up flower.
# See: https://docs.docker.com/compose/profiles/
flower:
container_name: airflow-flower
<<: *airflow-common
command: celery flower
profiles:
- flower
ports:
- "5555:5555"
healthcheck:
test: ["CMD", "curl", "--fail", "http://localhost:5555/"]
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
restart: always
depends_on:
<<: *airflow-common-depends-on
airflow-init:
condition: service_completed_successfully
amundsen:
command: gunicorn -w 2 --bind :5000 amundsen_application.wsgi
container_name: amundsen
depends_on:
- amundsen-metadata
- amundsen-search
environment:
- SEARCHSERVICE_BASE=http://amundsen-search:5000
- METADATASERVICE_BASE=http://amundsen-metadata:5000
- FRONTEND_SVC_CONFIG_MODULE_CLASS=amundsen_application.config.TestConfig
image: "amundsendev/amundsen-frontend:${AMUNDSEN_FRONTEND_VERSION:-4.2.0}"
ports:
- "5003:5000"
amundsen-metadata:
command: gunicorn -w 2 --bind :5000 metadata_service.metadata_wsgi
container_name: amundsen-metadata
depends_on:
- amundsen-neo4j
environment:
- PROXY_HOST=bolt://amundsen-neo4j
- PROXY_ENCRYPTED=True
- PROXY_VALIDATE_SSL=False
image: "amundsendev/amundsen-metadata:${AMUNDSEN_METADATA_VERSION:-3.11.0}"
ports:
- "5002:5000"
amundsen-neo4j:
container_name: amundsen-neo4j
environment:
- NEO4J_AUTH=none
image: "datacatering/neo4j:3.5.35"
ports:
- "7474:7474"
- "7687:7687"
ulimits:
nofile:
hard: 40000
soft: 40000
volumes:
- "./data/amundsen-neo4j/conf:/var/lib/neo4j/conf"
amundsen-search:
command: gunicorn -w 2 --bind :5000 search_service.search_wsgi
container_name: amundsen-search
depends_on:
- elasticsearch
environment:
- PROXY_ENDPOINT=elasticsearch
image: "amundsendev/amundsen-search:${AMUNDSEN_SEARCH_VERSION:-4.0.2}"
ports:
- "5001:5000"
cassandra:
command: [-c, /tmp/scripts/init.sh]
container_name: cassandra-data
depends_on:
cassandra-server:
condition: service_healthy
entrypoint: /bin/bash
environment:
- DS_LICENSE=accept
image: "datacatering/dse-server:6.8.48"
volumes:
- "./data/cassandra/init.sh:/tmp/scripts/init.sh"
- "${CASSANDRA_DATA:-./data/cassandra/data}:/tmp/data"
cassandra-server:
cap_add:
- IPC_LOCK
container_name: cassandra
environment:
- DS_LICENSE=accept
healthcheck:
interval: 30s
retries: 3
test: [CMD-SHELL, "[ $$(nodetool statusgossip) = running ]"]
timeout: 10s
image: "datacatering/dse-server:6.8.48"
ports:
- "9042:9042"
ulimits:
memlock: -1
clickhouse:
command: [/bin/bash, -c, /tmp/scripts/init.sh]
container_name: clickhouse-data
depends_on:
clickhouse-server:
condition: service_healthy
hostname: clickhouse
image: "clickhouse/clickhouse-server:${CLICKHOUSE_VERSION:-24.5.3}"
user: "101:101"
volumes:
- "./data/clickhouse/init.sh:/tmp/scripts/init.sh"
- "${CLICKHOUSE_DATA:-./data/clickhouse/data}:/tmp/data"
clickhouse-server:
container_name: clickhouse
depends_on:
postgres:
condition: service_completed_successfully
healthcheck:
interval: 10s
retries: 3
test: "wget --no-verbose --tries=1 --spider http://localhost:8123/ping || exit 1"
timeout: 5s
hostname: clickhouse
image: "clickhouse/clickhouse-server:${CLICKHOUSE_VERSION:-24.5.3}"
ports:
- "8123:8123"
- "9003:9000"
user: "101:101"
cockroachdb:
command: [bash, -c, /tmp/scripts/init.sh]
container_name: cockroachdb-data
depends_on:
cockroachdb-server:
condition: service_healthy
image: "cockroachdb/cockroach:${COCKROACHDB_VERSION:-v24.1.0}"
volumes:
- "./data/cockroachdb/init.sh:/tmp/scripts/init.sh"
- "${COCKROACHDB_DATA:-./data/cockroachdb/data}:/tmp/data"
cockroachdb-server:
command: [start-single-node, --insecure]
container_name: cockroachdb
healthcheck:
interval: 10s
retries: 5
test: [CMD-SHELL, "curl --fail http://localhost:8080/ || exit 1"]
timeout: 5s
image: "cockroachdb/cockroach:${COCKROACHDB_VERSION:-v24.1.0}"
ports:
- "26257:26257"
- "8080:8080"
confluent-schema-registry:
container_name: schema-registry
depends_on:
kafka-server:
condition: service_healthy
env_file: data/confluent-schema-registry/env/docker.env
healthcheck:
interval: 10s
retries: 5
test: nc -z schema-registry 8081
timeout: 5s
hostname: schema-registry
image: confluentinc/cp-schema-registry:${CONFLUENT_SCHEMA_REGISTRY_VERSION:-7.4.0}
ports:
- "8081:8081"
dagster:
container_name: dagster
depends_on:
postgres:
condition: service_completed_successfully
entrypoint: [dagster-webserver, -h, 0.0.0.0, -p, "3000", -w, /opt/dagster/app/workspace.yaml]
environment:
- DAGSTER_POSTGRES_HOST=postgres
- "DAGSTER_POSTGRES_USER=${POSTGRES_USER:-postgres}"
- "DAGSTER_POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-postgres}"
- DAGSTER_POSTGRES_DB=dagster
- DAGSTER_HOME=/opt/dagster/dagster_home/
image: "dagster/dagster-k8s:${DAGSTER_VERSION:-1.7.10}"
ports:
- "3000:3000"
volumes:
- "./data/dagster:/opt/dagster/app/"
data-caterer:
container_name: data-caterer
depends_on:
postgres:
condition: service_completed_successfully
environment:
- DEPLOY_MODE=standalone
image: "datacatering/data-caterer-basic:${DATA_CATERER_VERSION:-0.10.10}"
ports:
- "9898:9898"
volumes:
- "./data/data-caterer/connection:/opt/DataCaterer/connection"
- "./data/data-caterer/plan:/opt/DataCaterer/plan"
datahub:
container_name: datahub
depends_on:
datahub-gms:
condition: service_healthy
env_file: data/datahub-frontend/env/docker.env
environment:
- ELASTIC_CLIENT_USERNAME=elastic
- "ELASTIC_CLIENT_PASSWORD=${ELASTICSEARCH_PASSWORD:-elasticsearch}"
hostname: datahub
image: acryldata/datahub-frontend-react:${DATAHUB_VERSION:-head}
ports:
- "9002:9002"
datahub-actions:
container_name: datahub-actions
depends_on:
datahub-gms:
condition: service_healthy
env_file: data/datahub-actions/env/docker.env
environment:
- ACTIONS_EXTRA_PACKAGES=${ACTIONS_EXTRA_PACKAGES:-}
- ACTIONS_CONFIG=${ACTIONS_CONFIG:-}
hostname: actions
image: acryldata/datahub-actions:${DATAHUB_VERSION:-head}
datahub-gms:
container_name: datahub-gms
depends_on:
datahub-upgrade:
condition: service_completed_successfully
env_file: data/datahub-upgrade/env/docker-without-neo4j.env
environment:
- KAFKA_CONSUMER_STOP_ON_DESERIALIZATION_ERROR=${KAFKA_CONSUMER_STOP_ON_DESERIALIZATION_ERROR:-true}
- EBEAN_DATASOURCE_USERNAME=root
- "EBEAN_DATASOURCE_PASSWORD=${MYSQL_PASSWORD:-root}"
- ELASTICSEARCH_USERNAME=elastic
- "ELASTICSEARCH_PASSWORD=${ELASTICSEARCH_PASSWORD:-elasticsearch}"
healthcheck:
interval: 1s
retries: 3
start_period: 90s
test: "curl -sS --fail http://datahub-gms:8080/health"
timeout: 5s
hostname: datahub-gms
image: acryldata/datahub-gms:${DATAHUB_VERSION:-head}
ports:
- "8080:8080"
datahub-kafka-setup:
container_name: datahub-kafka-setup
depends_on:
confluent-schema-registry:
condition: service_healthy
kafka-server:
condition: service_healthy
entrypoint: [/bin/sh, -c, /tmp/scripts/init.sh]
environment:
- "KAFKA_TOPICS=${KAFKA_TOPICS:-MetadataAuditEvent_v4,MetadataChangeEvent_v4,FailedMetadataChangeEvent_v4,MetadataChangeLog_Versioned_v1,MetadataChangeLog_Timeseries_v1,MetadataChangeProposal_v1,FailedMetadataChangeProposal_v1,PlatformEvent_v1,DataHubUpgradeHistory_v1}"
image: "confluentinc/confluent-local:${KAFKA_VERSION:-7.6.1}"
volumes:
- "./data/kafka/init.sh:/tmp/scripts/init.sh"
datahub-upgrade:
command:
- -u
- SystemUpdate
container_name: datahub-upgrade
depends_on:
datahub-kafka-setup:
condition: service_completed_successfully
elasticsearch:
condition: service_completed_successfully
mysql:
condition: service_completed_successfully
neo4j:
condition: service_healthy
env_file: data/datahub-upgrade/env/docker-without-neo4j.env
environment:
- EBEAN_DATASOURCE_USERNAME=root
- "EBEAN_DATASOURCE_PASSWORD=${MYSQL_PASSWORD:-root}"
- ELASTICSEARCH_USERNAME=elastic
- "ELASTICSEARCH_PASSWORD=${ELASTICSEARCH_PASSWORD:-elasticsearch}"
hostname: datahub-upgrade
image: acryldata/datahub-upgrade:${DATAHUB_VERSION:-head}
labels:
datahub_setup_job: true
debezium:
container_name: debezium
depends_on:
debezium-connect:
condition: service_healthy
environment:
- "KAFKA_CONNECT_URIS=http://debezium-connect:8083"
healthcheck:
interval: 10s
retries: 3
test: [CMD, curl, --fail, "http://localhost:8080"]
timeout: 10s
image: "debezium/debezium-ui:${DEBEZIUM_VERSION:-2.1.2.Final}"
ports:
- "8080:8080"
debezium-connect:
container_name: debezium-connect
depends_on:
- kafka
environment:
- "BOOTSTRAP_SERVERS=kafka:29092"
- GROUP_ID=1
- CONFIG_STORAGE_TOPIC=my_connect_configs
- OFFSET_STORAGE_TOPIC=my_connect_offsets
- STATUS_STORAGE_TOPIC=my_connect_statuses
- KEY_CONVERTER=org.apache.kafka.connect.json.JsonConverter
- VALUE_CONVERTER=org.apache.kafka.connect.json.JsonConverter
- CONNECT_REST_ADVERTISED_HOST_NAME=debezium-connect
- CONNECT_REST_PORT=8083
healthcheck:
interval: 10s
retries: 3
test: [CMD, curl, --fail, "http://localhost:8083"]
timeout: 10s
image: "debezium/connect:${DEBEZIUM_CONNECT_VERSION:-2.6.2.Final}"
ports:
- "8083:8083"
doris:
container_name: doris
depends_on:
postgres:
condition: service_completed_successfully
image: "apache/doris:${DORIS_VERSION:-doris-all-in-one-2.1.0}"
ports:
- "8030:8030"
- "8040:8040"
- "9030:9030"
druid:
command: [router]
container_name: druid
depends_on:
druid-broker:
condition: service_healthy
druid-coordinator:
condition: service_healthy
druid-historical:
condition: service_healthy
druid-middlemanager:
condition: service_healthy
postgres:
condition: service_healthy
zookeeper:
condition: service_healthy
env_file: data/druid/environment
environment:
- "druid_metadata_storage_connector_user=${POSTGRES_USER:-postgres}"
- "druid_metadata_storage_connector_password=${POSTGRES_PASSWORD:-postgres}"
healthcheck:
interval: 10s
retries: 3
test: "wget --no-verbose --tries=1 --spider http://localhost:8888/status/health || exit 1"
timeout: 5s
image: "apache/druid:${DRUID_VERSION:-30.0.0}"
ports:
- "8888:8888"
druid-broker:
command: [broker]
container_name: druid-broker
depends_on:
druid-coordinator:
condition: service_healthy
postgres:
condition: service_healthy
zookeeper:
condition: service_healthy
env_file: data/druid/environment
environment:
- "druid_metadata_storage_connector_user=${POSTGRES_USER:-postgres}"
- "druid_metadata_storage_connector_password=${POSTGRES_PASSWORD:-postgres}"
healthcheck:
interval: 10s
retries: 3
test: "wget --no-verbose --tries=1 --spider http://localhost:8082/druid/broker/v1/loadstatus || exit 1"
timeout: 5s
image: "apache/druid:${DRUID_VERSION:-30.0.0}"
ports:
- "8082:8082"
druid-coordinator:
command: [coordinator]
container_name: druid-coordinator
depends_on:
postgres:
condition: service_completed_successfully
zookeeper:
condition: service_healthy
env_file: data/druid/environment
environment:
- "druid_metadata_storage_connector_user=${POSTGRES_USER:-postgres}"
- "druid_metadata_storage_connector_password=${POSTGRES_PASSWORD:-postgres}"
healthcheck:
interval: 10s
retries: 3
test: "wget --no-verbose --tries=1 --spider http://localhost:8081/status/health || exit 1"
timeout: 5s
image: "apache/druid:${DRUID_VERSION:-30.0.0}"
ports:
- "8081:8081"
druid-historical:
command: [historical]
container_name: druid-historical
depends_on:
druid-coordinator:
condition: service_healthy
postgres:
condition: service_healthy
zookeeper:
condition: service_healthy
env_file: data/druid/environment
environment:
- "druid_metadata_storage_connector_user=${POSTGRES_USER:-postgres}"
- "druid_metadata_storage_connector_password=${POSTGRES_PASSWORD:-postgres}"
healthcheck:
interval: 10s
retries: 3
test: "wget --no-verbose --tries=1 --spider http://localhost:8083/druid/historical/v1/readiness || exit 1"
timeout: 5s
image: "apache/druid:${DRUID_VERSION:-30.0.0}"
ports:
- "8083:8083"
druid-middlemanager:
command: [middleManager]
container_name: druid-middlemanager
depends_on:
druid-coordinator:
condition: service_healthy
postgres:
condition: service_healthy
zookeeper:
condition: service_healthy
env_file: data/druid/environment
environment:
- "druid_metadata_storage_connector_user=${POSTGRES_USER:-postgres}"
- "druid_metadata_storage_connector_password=${POSTGRES_PASSWORD:-postgres}"
healthcheck:
interval: 10s
retries: 3
test: "wget --no-verbose --tries=1 --spider http://localhost:8091/status/health || exit 1"
timeout: 5s
image: "apache/druid:${DRUID_VERSION:-30.0.0}"
ports:
- "8091:8091"
- "8100-8105:8100-8105"
duckdb:
container_name: duckdb
depends_on:
postgres:
condition: service_completed_successfully
entrypoint: [tail, -F, anything]
image: "datacatering/duckdb:${DUCKDB_VERSION:-v1.0.0}"
volumes:
- "./data/duckdb:/opt/data"
elasticsearch:
container_name: elasticsearch-data
depends_on:
elasticsearch-server:
condition: service_healthy
entrypoint: /tmp/entrypoint.sh
environment:
- "ELASTIC_PASSWORD=${ELASTIC_PASSWORD:-elasticsearch}"
- "LOGSTASH_INTERNAL_PASSWORD=${LOGSTASH_INTERNAL_PASSWORD:-password}"
- "KIBANA_SYSTEM_PASSWORD=${KIBANA_SYSTEM_PASSWORD:-password}"
- "METRICBEAT_INTERNAL_PASSWORD=${METRICBEAT_INTERNAL_PASSWORD:-}"
- "FILEBEAT_INTERNAL_PASSWORD=${FILEBEAT_INTERNAL_PASSWORD:-}"
- "HEARTBEAT_INTERNAL_PASSWORD=${HEARTBEAT_INTERNAL_PASSWORD:-}"
- "MONITORING_INTERNAL_PASSWORD=${MONITORING_INTERNAL_PASSWORD:-}"
- "BEATS_SYSTEM_PASSWORD=${BEATS_SYSTEM_PASSWORD:-}"
image: "docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION:-8.15.0}"
volumes:
- "./data/elasticsearch/data/entrypoint.sh:/tmp/entrypoint.sh"
- "./data/elasticsearch/data/lib.sh:/tmp/lib.sh"
- "./data/elasticsearch/data/roles:/tmp/roles"
elasticsearch-server:
container_name: elasticsearch
environment:
- node.name=elasticsearch
- ES_JAVA_OPTS=-Xms512m -Xmx512m
- "ELASTIC_PASSWORD=${ELASTICSEARCH_PASSWORD:-elasticsearch}"
- XPACK_SECURITY_ENABLED=true
- discovery.type=single-node
healthcheck:
interval: 10s
retries: 5
test: "curl -sS --fail http://elasticsearch:9200/_cluster/health?wait_for_status=yellow&timeout=0s"
timeout: 5s
image: "docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION:-8.15.0}"
ports:
- "9200:9200"
- "9300:9300"
restart: unless-stopped
volumes:
- "./data/elasticsearch/config/elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml:ro,Z"
flight-sql:
command: [tail, -f, /dev/null]
container_name: flight-sql
depends_on:
- duckdb
- sqlite
environment:
- TLS_ENABLED=1
- "FLIGHT_PASSWORD=${FLIGHT_SQL_PASSWORD:-flight_password}"
- PRINT_QUERIES=1
image: "voltrondata/flight-sql:${FLIGHT_SQL_VERSION:-v1.4.0}"
ports:
- "31337:31337"
flink:
command: taskmanager
container_name: flink
depends_on:
- flink-jobmanager
environment:
- JOB_MANAGER_RPC_ADDRESS=flink-jobmanager
- "FLINK_PROPERTIES=jobmanager.rpc.address:flink-jobmanager"
expose:
- 6121
- 6122
image: "flink:${FLINK_VERSION:-1.19.0-scala_2.12-java17}"
links: []
flink-jobmanager:
command: jobmanager
container_name: flink-jobmanager
environment:
- JOB_MANAGER_RPC_ADDRESS=flink-jobmanager
- "FLINK_PROPERTIES=jobmanager.rpc.address:flink-jobmanager"
expose:
- 6123
image: "flink:${FLINK_VERSION:-1.19.0-scala_2.12-java17}"
ports:
- "10082:8081"
fluentd:
container_name: fluentd
depends_on:
elasticsearch:
condition: service_completed_successfully
image: "datacatering/fluentd-elasticsearch:${FLUENTD_VERSION:-v1.17.0-debian-1.0}"
ports:
- "24224:24224"
- "24224:24224/udp"
volumes:
- "./data/fluentd/etc/fluent.conf:/fluentd/etc/fluent.conf"
hadoop-namenode:
image: apache/hadoop:3
container_name: hadoop-namenode
hostname: namenode
command: ["hdfs", "namenode"]
ports:
- 9870:9870
env_file:
- ./data/hadoop/config
environment:
ENSURE_NAMENODE_DIR: "/tmp/hadoop-root/dfs/name"
hadoop-datanode:
container_name: hadoop-datanode
image: apache/hadoop:3
command: ["hdfs", "datanode"]
env_file:
- ./data/hadoop/config
depends_on:
- hadoop-namenode
hadoop-resourcemanager:
container_name: hadoop-resourcemanager
image: apache/hadoop:3
hostname: resourcemanager
command: ["yarn", "resourcemanager"]
ports:
- 8088:8088
env_file:
- ./data/hadoop/config
volumes:
- ./test.sh:/opt/test.sh
depends_on:
- hadoop-datanode
hadoop:
container_name: hadoop
image: apache/hadoop:3
command: ["yarn", "nodemanager"]
env_file:
- ./data/hadoop/config
depends_on:
- hadoop-resourcemanager
metastore:
image: apache/hive:3.1.3
depends_on:
- postgres
restart: unless-stopped
container_name: metastore
hostname: metastore
environment:
DB_DRIVER: postgres
SERVICE_NAME: 'metastore'
SERVICE_OPTS: '-Xmx1G -Djavax.jdo.option.ConnectionDriverName=org.postgresql.Driver
-Djavax.jdo.option.ConnectionURL=jdbc:postgresql://postgres:5432/metastore
-Djavax.jdo.option.ConnectionUserName=${POSTGRES_USER:-postgres}
-Djavax.jdo.option.ConnectionPassword=${POSTGRES_PASSWORD:-postgres}'
ports:
- '9083:9083'
volumes:
- ./data/hive:/opt/hive/data/warehouse
- type: bind
source: ${POSTGRES_LOCAL_PATH}
target: /opt/hive/lib/postgres.jar
healthcheck:
test: ["CMD-SHELL", "nc -zv localhost 9083"]
interval: 30s
timeout: 10s
retries: 3
hive:
image: apache/hive:3.1.3
depends_on:
- metastore
- hadoop
restart: unless-stopped
container_name: hive
environment:
HIVE_SERVER2_THRIFT_PORT: 10000
SERVICE_OPTS: '-Xmx1G -Dhive.metastore.uris=thrift://metastore:9083'
IS_RESUME: 'true'
SERVICE_NAME: 'hiveserver2'
ports:
- '10000:10000'
- '10002:10002'
volumes:
- ./data/hive:/opt/hive/data/warehouse
healthcheck:
test: ["CMD", "beeline", "-u", "jdbc:hive2://localhost:10000/default", "-e", "SELECT 1;"]
interval: 30s
timeout: 10s
retries: 3
httpbin:
container_name: http
environment:
- "GUNICORN_CMD_ARGS=--capture-output --error-logfile - --access-logfile - --access-logformat '%(h)s %(t)s %(r)s %(s)s Host: %({Host}i)s}'"
image: "kennethreitz/httpbin:${HTTPBIN_VERSION:-latest}"
ports:
- "80:80"
httpd:
container_name: httpd
depends_on:
- fluentd
image: "httpd:${HTTPD_VERSION:-2.4.62}"
logging:
driver: fluentd
options:
fluentd-address: localhost:24224
fluentd-async-connect: "true"
tag: httpd.access
ports:
- "80:80"
jupyter:
command: [jupyter, notebook, --no-browser, "--NotebookApp.token=''", "--NotebookApp.password=''"]
container_name: jupyter
image: "quay.io/jupyter/minimal-notebook:2024-07-02"
ports:
- "8889:8888"
kafka:
container_name: kafka-data
depends_on:
kafka-server:
condition: service_healthy
entrypoint: [/bin/sh, -c, /tmp/scripts/init.sh]
environment:
- "KAFKA_TOPICS=${KAFKA_TOPICS:-accounts,transactions}"
image: "confluentinc/confluent-local:${KAFKA_VERSION:-7.6.1}"
volumes:
- "./data/kafka/init.sh:/tmp/scripts/init.sh"
kafka-server:
container_name: kafka
environment:
- "KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT,CONTROLLER:PLAINTEXT"
- KAFKA_INTER_BROKER_LISTENER_NAME=PLAINTEXT
- "KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092"
- "KAFKA_LISTENERS=PLAINTEXT://kafka:29092,CONTROLLER://localhost:29093,PLAINTEXT_HOST://0.0.0.0:9092"
expose:
- 29092
healthcheck:
interval: 5s
retries: 5
test: [CMD-SHELL, /bin/sh, -c, kafka-topics, --bootstrap-server, "kafka:29092", --list]
timeout: 5s
image: "confluentinc/confluent-local:7.7.0"
ports:
- "9092:9092"
keycloak:
command: [start-dev, --import-realm]
container_name: keycloak
depends_on:
postgres:
condition: service_completed_successfully
environment:
- KC_DB=postgres
- "KC_DB_USERNAME=${POSTGRES_USER:-postgres}"
- "KC_DB_PASSWORD=${POSTGRES_PASSWORD:-postgres}"
- "KC_DB_URL=jdbc:postgresql://postgres:5432/keycloak"
- KC_REALM_NAME=myrealm
- "KEYCLOAK_ADMIN=${KEYCLOAK_USER:-admin}"
- "KEYCLOAK_ADMIN_PASSWORD=${KEYCLOAK_PASSWORD:-admin}"
image: "quay.io/keycloak/keycloak:${KEYCLOACK_VERSION:-25.0.0}"
ports:
- "8082:8080"
restart: unless-stopped
volumes:
- "./data/keycloak/realm.json:/opt/keycloak/data/import/realm.json:ro"
kibana:
container_name: kibana
depends_on:
elasticsearch:
condition: service_completed_successfully
environment:
- ELASTICSEARCH_HOSTS=http://elasticsearch:9200
- ELASTICSEARCH_USERNAME=kibana_system
- "KIBANA_SYSTEM_PASSWORD=${KIBANA_SYSTEM_PASSWORD:-password}"
healthcheck:
interval: 10s
retries: 3
test: [CMD, curl, --fail, "http://localhost:5601/api/status"]
timeout: 5s
image: "docker.elastic.co/kibana/kibana:${KIBANA_VERSION:-8.15.0}"
ports:
- "5601:5601"
restart: always
volumes:
- "./data/kibana/config/kibana.yml:/usr/share/kibana/config/kibana.yml"
logstash:
container_name: logstash
depends_on:
elasticsearch:
condition: service_completed_successfully
environment:
LOGSTASH_INTERNAL_PASSWORD: "${LOGSTASH_INTERNAL_PASSWORD:-password}"
LS_JAVA_OPTS: -Xms256m -Xmx256m
healthcheck:
interval: 10s
retries: 3
test: [CMD, curl, --fail, "http://localhost:9600"]
timeout: 5s
image: "docker.elastic.co/logstash/logstash:${LOGSTASH_VERSION:-8.15.0}"
ports:
- "5044:5044"
- "50000:50000/tcp"
- "50000:50000/udp"
- "9600:9600"
restart: unless-stopped
volumes:
- "./data/logstash/config/logstash.yml:/usr/share/logstash/config/logstash.yml"
- "./data/logstash/pipeline:/usr/share/logstash/pipeline"
maestro:
container_name: maestro
depends_on:
cockroachdb:
condition: service_completed_successfully
environment:
- CONDUCTOR_CONFIGS_JDBCURL=jdbc:postgresql://cockroachdb:26257/maestro
- CONDUCTOR_CONFIGS_JDBCUSERNAME=root
image: "datacatering/maestro:${MAESTRO_VERSION:-0.1.0}"
ports:
- "8081:8080"
mage-ai:
command: mage start your_first_project
container_name: mage-ai
environment:
- USER_CODE_PATH=/home/src/your_first_project
image: "mageai/mageai:${MAGE_AI_VERSION:-0.9.71}"
ports:
- "6789:6789"
restart: on-failure
mariadb:
container_name: mariadb
environment:
- "MARIADB_USER=${MARIADB_USER:-user}"
- "MARIADB_PASSWORD=${MARIADB_PASSWORD:-password}"
- MARIADB_ROOT_PASSWORD=root
- MARIADB_DATABASE=customer
image: "mariadb:${MARIADB_VERSION:-11.4.2}"
ports:
- "3306:3306"
restart: always
marquez:
container_name: marquez-web
depends_on:
- marquez-data