-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathcompose.yaml
More file actions
63 lines (59 loc) · 1.87 KB
/
compose.yaml
File metadata and controls
63 lines (59 loc) · 1.87 KB
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
name: flink-tx-cdc-aggregation
services:
mysql:
hostname: mysql
image: quay.io/debezium/example-mysql:3.0.1.Final
ports:
- 3306:3306
command: ["--default-authentication-plugin=caching_sha2_password","--log-bin=binlog","--server-id=12345"]
environment:
- MYSQL_ROOT_PASSWORD=123456
- MYSQL_USER=mysqluser
- MYSQL_PASSWORD=mysqlpw
- TZ=UTC
healthcheck:
test: ["CMD", "mysqladmin", "ping", "-h", "127.0.0.1", "--silent"]
interval: 5s
timeout: 3s
retries: 2
start_period: 0s
networks:
- my-network
kafka:
hostname: kafka
image: quay.io/strimzi/kafka:0.43.0-kafka-3.8.0
command: [
"sh", "-c",
"./bin/kafka-storage.sh format -t $${RANDOM_STORAGE_UUID} -c ./config/kraft/server.properties && bin/kafka-server-start.sh ./config/kraft/server.properties --override advertised.listeners=$${KAFKA_ADVERTISED_LISTENERS} --override num.partitions=$${KAFKA_NUM_PARTITIONS} --override group.min.session.timeout.ms=$${KAFKA_GROUP_MIN_SESSION_TIMEOUT_MS}"
]
ports:
- 9092:9092
environment:
LOG_DIR: "/tmp/logs"
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_NUM_PARTITIONS: 1
KAFKA_GROUP_MIN_SESSION_TIMEOUT_MS: 100
RANDOM_STORAGE_UUID: X6GgnrKiQJmebuL2rWU9dw
networks:
- my-network
connect:
hostname: connect
image: quay.io/debezium/connect:3.0.1.Final
ports:
- "8083:8083"
depends_on:
- kafka
- mysql
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
networks:
- my-network
networks:
my-network:
name: flink-tx-cdc-aggregation