-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
116 lines (115 loc) · 3.33 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
# example taken from:
# https://github.com/debezium/debezium-examples/blob/main/auditlog/docker-compose.yaml
version: '3.8'
services:
zookeeper:
container_name: kd-zookeeper
image: quay.io/debezium/zookeeper:${DEBEZIUM_VERSION}
ports:
- "52181:2181"
- "52888:2888"
- "53888:3888"
networks:
- kd-demo
kafka:
container_name: kd-kafka
image: quay.io/debezium/kafka:${DEBEZIUM_VERSION}
ports:
- "59092:59092"
depends_on:
- zookeeper
environment:
- KAFKA_BROKER_ID=1
- ZOOKEEPER_CONNECT=zookeeper:2181
- KAFKA_LISTENERS=INTERNAL://:9092,EXTERNAL://:59092
- KAFKA_ADVERTISED_LISTENERS=INTERNAL://kafka:9092,EXTERNAL://localhost:59092
- KAFKA_LISTENER_SECURITY_PROTOCOL_MAP=INTERNAL:PLAINTEXT,EXTERNAL:PLAINTEXT
- KAFKA_INTER_BROKER_LISTENER_NAME=INTERNAL
networks:
- kd-demo
postgres:
image: quay.io/debezium/example-postgres:${DEBEZIUM_VERSION}
container_name: kd-postgres
ports:
- "55432:5432"
environment:
- POSTGRES_USER=postgres_user
- POSTGRES_PASSWORD=postgres_user
- POSTGRES_DB=claimsdb
volumes:
# - conf/postgresdata:/var/lib/postgresql/data
- ./conf/db-init:/docker-entrypoint-initdb.d
networks:
- kd-demo
connect:
image: quay.io/debezium/connect:${DEBEZIUM_VERSION}
container_name: kd-connect
ports:
- "58083:8083"
links:
- kafka
environment:
- BOOTSTRAP_SERVERS=kafka:9092
- GROUP_ID=1
- CONFIG_STORAGE_TOPIC=my_connect_configs
- OFFSET_STORAGE_TOPIC=my_connect_offsets
- STATUS_STORAGE_TOPIC=my_connect_statuses
- ENABLE_DEBEZIUM_KC_REST_EXTENSION=true
- ENABLE_DEBEZIUM_SCRIPTING=true
- CONNECT_REST_EXTENSION_CLASSES=io.debezium.kcrestextension.DebeziumConnectRestExtension
# - ENABLE_APICURIO_CONVERTERS=true
# - ENABLE_JOLOKIA=true
networks:
- kd-demo
schema-registry:
image: confluentinc/cp-schema-registry:7.5.0
hostname: schema-registry
container_name: kd-schema-registry
depends_on:
- zookeeper
- kafka
ports:
- "58003:8081"
environment:
SCHEMA_REGISTRY_HOST_NAME: schema-registry
SCHEMA_REGISTRY_KAFKASTORE_BOOTSTRAP_SERVERS: 'kafka:9092'
networks:
- kd-demo
kafka-ui:
image: provectuslabs/kafka-ui:${KAFKA_UI_VERSION}
container_name: kd-kafka-ui
ports:
- "58000:8080"
environment:
- DYNAMIC_CONFIG_ENABLED=true
volumes:
- ./conf/kafka-ui/conf.yml:/etc/kafkaui/dynamic_config.yaml
networks:
- kd-demo
debezium-ui:
# TODO: Check again for the correct image architecture.
platform: linux/x86_64
# image: quay.io/debezium/debezium-ui:2.4
image: quay.io/debezium/debezium-ui:${DEBEZIUM_VERSION}
container_name: kd-debezium-ui
ports:
- "58001:8080"
links:
- connect
environment:
KAFKA_CONNECT_URIS: http://connect:8083
networks:
- kd-demo
set-topics:
image: confluentinc/cp-kafka
container_name: kd-set-topics
depends_on:
- kafka
command: >
bash -c "kafka-topics --create --topic claims.test --bootstrap-server kafka:9092 --partitions 1 --replication-factor 1 --config cleanup.policy=compact --if-not-exists"
restart: on-failure
networks:
- kd-demo
networks:
kd-demo:
name: kd-demo