-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.yaml
106 lines (99 loc) · 3.07 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
version: '2'
services:
zookeeper:
container_name: zookeeper
image: strimzi/kafka:0.20.0-kafka-2.5.0
command: [
"sh", "-c",
"bin/zookeeper-server-start.sh config/zookeeper.properties"
]
ports:
- "2181:2181"
environment:
LOG_DIR: /tmp/logs
kafka:
container_name: kafka
image: strimzi/kafka:0.20.0-kafka-2.5.0
command: [
"sh", "-c",
"bin/kafka-server-start.sh config/server.properties --override listener.security.protocol.map=$${KAFKA_LISTENER_SECURITY_PROTOCOL_MAP} --override listeners=$${KAFKA_LISTENERS} --override advertised.listeners=$${KAFKA_ADVERTISED_LISTENERS} --override zookeeper.connect=$${KAFKA_ZOOKEEPER_CONNECT}"
]
depends_on:
- zookeeper
ports:
- "9092:9092"
environment:
LOG_DIR: "/tmp/logs"
KAFKA_BROKER_ID: 1
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_LISTENERS: PLAINTEXT://:29092,PLAINTEXT_HOST://:9092
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:29092,PLAINTEXT_HOST://localhost:9092
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
mysql:
container_name: mysql
image: debezium/example-mysql:1.3
ports:
- 3306:3306
environment:
- MYSQL_ROOT_PASSWORD=debezium
- MYSQL_USER=mysqluser
- MYSQL_PASSWORD=mysqlpw
debezium:
container_name: debezium
image: quay.io/hguerreroo/rhi-cdc-connect:2020-Q3-minikube
command: [
"sh", "-c",
"/opt/kafka/kafka_connect_run.sh"
]
depends_on:
- zookeeper
- kafka
ports:
- "8083:8083"
environment:
KAFKA_CONNECT_BOOTSTRAP_SERVERS: kafka:29092
KAFKA_CONNECT_CONFIGURATION: |
offset.storage.topic=debezium-cluster-offsets
value.converter=org.apache.kafka.connect.json.JsonConverter
config.storage.topic=debezium-cluster-configs
key.converter=org.apache.kafka.connect.json.JsonConverter
group.id=debezium-cluster
status.storage.topic=debezium-cluster-status
config.storage.replication.factor=1
offset.storage.replication.factor=1
status.storage.replication.factor=1
volumes:
- ./log4j.properties:/opt/kafka/custom-config/log4j.properties
registry:
container_name: registry
image: apicurio/apicurio-registry-mem:1.3.2.Final
depends_on:
- zookeeper
- kafka
ports:
- "8081:8080"
environment:
QUARKUS_PROFILE: prod
KAFKA_BOOTSTRAP_SERVERS: kafka:29092
APPLICATION_ID: registry_id
APPLICATION_SERVER: localhost:9000
bridge:
container_name: bridge
image: strimzi/kafka-bridge:0.19.0
command: [
"sh", "-c",
"/opt/strimzi/bin/docker/kafka_bridge_run.sh"
]
depends_on:
- zookeeper
- kafka
ports:
- "8082:8080"
environment:
KAFKA_BRIDGE_BOOTSTRAP_SERVERS: kafka:29092
KAFKA_BRIDGE_ID: bridge1
KAFKA_BRIDGE_HTTP_ENABLED: "true"
KAFKA_BRIDGE_HTTP_HOST: "0.0.0.0"
KAFKA_BRIDGE_HTTP_PORT: "8080"
volumes:
- ./log4j.properties:/opt/strimzi/custom-config/log4j2.properties