Skip to content

Commit ae5944d

Browse files
authored
added 3rd broker
1 parent fce6427 commit ae5944d

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

zk-single-kafka-multiple.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,3 +40,18 @@ services:
4040
# KAFKA_LOG4J_LOGGERS: "kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO"
4141
depends_on:
4242
- zoo1
43+
44+
45+
kafka3:
46+
image: confluentinc/cp-kafka:3.1.2
47+
hostname: kafka3
48+
ports:
49+
- "9094:9094"
50+
environment:
51+
# add the entry "127.0.0.1 kafka1" to your /etc/hosts file
52+
KAFKA_ADVERTISED_LISTENERS: "PLAINTEXT://kafka3:9093"
53+
KAFKA_ZOOKEEPER_CONNECT: "zoo1:2181"
54+
KAFKA_BROKER_ID: 3
55+
# KAFKA_LOG4J_LOGGERS: "kafka.controller=INFO,kafka.producer.async.DefaultEventHandler=INFO,state.change.logger=INFO"
56+
depends_on:
57+
- zoo1

0 commit comments

Comments
 (0)