4 image: bitnami/kafka:3.3.1
6 KAFKA_ENABLE_KRAFT: 'yes'
7 KAFKA_KRAFT_CLUSTER_ID: r7dMBY60T16TrNCGeXniLw
8 KAFKA_CFG_PROCESS_ROLES: controller
9 KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
10 KAFKA_CFG_LISTENERS: CONTROLLER://:9092
11 KAFKA_CFG_ADVERTISED_LISTENERS: " "
12 KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT
14 KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 0@kafka-0:9092
15 ALLOW_PLAINTEXT_LISTENER: 'yes'
16 KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
17 KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
20 image: bitnami/kafka:3.3.1
22 KAFKA_ENABLE_KRAFT: 'yes'
23 KAFKA_KRAFT_CLUSTER_ID: r7dMBY60T16TrNCGeXniLw
24 KAFKA_CFG_PROCESS_ROLES: broker
25 KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
26 KAFKA_CFG_LISTENERS: BROKER://:9092, LOCALHOST://:9081
27 KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, CONTROLLER:PLAINTEXT, LOCALHOST:PLAINTEXT
28 KAFKA_CFG_ADVERTISED_LISTENERS: BROKER://kafka-1:9092, LOCALHOST://localhost:9081
30 KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 0@kafka-0:9092
31 ALLOW_PLAINTEXT_LISTENER: 'yes'
32 KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
33 KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
34 KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
41 image: bitnami/kafka:3.3.1
43 KAFKA_ENABLE_KRAFT: 'yes'
44 KAFKA_KRAFT_CLUSTER_ID: r7dMBY60T16TrNCGeXniLw
45 KAFKA_CFG_PROCESS_ROLES: broker
46 KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
47 KAFKA_CFG_LISTENERS: BROKER://:9092, LOCALHOST://:9082
48 KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, CONTROLLER:PLAINTEXT, LOCALHOST:PLAINTEXT
49 KAFKA_CFG_ADVERTISED_LISTENERS: BROKER://kafka-2:9092, LOCALHOST://localhost:9082
51 KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 0@kafka-0:9092
52 ALLOW_PLAINTEXT_LISTENER: 'yes'
53 KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
54 KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
55 KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
67 image: bitnami/kafka:3.3.1
69 KAFKA_ENABLE_KRAFT: 'yes'
70 KAFKA_KRAFT_CLUSTER_ID: r7dMBY60T16TrNCGeXniLw
71 KAFKA_CFG_PROCESS_ROLES: broker
72 KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
73 KAFKA_CFG_LISTENERS: BROKER://:9092, LOCALHOST://:9083
74 KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, CONTROLLER:PLAINTEXT, LOCALHOST:PLAINTEXT
75 KAFKA_CFG_ADVERTISED_LISTENERS: BROKER://kafka-3:9092, LOCALHOST://localhost:9083
77 KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 0@kafka-0:9092
78 ALLOW_PLAINTEXT_LISTENER: 'yes'
79 KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
80 KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
81 KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
92 kafka-topics --bootstrap-server kafka:9092 --delete --if-exists --topic test
93 kafka-topics --bootstrap-server kafka:9092 --create --topic test --partitions 2 --replication-factor 3 --config min.insync.replicas=2
94 kafka-topics --bootstrap-server kafka:9092 --describe --topic test
103 command: sleep infinity
110 image: juplo/rest-producer:1.0-SNAPSHOT
115 producer.bootstrap-server: kafka:9092
116 producer.client-id: producer
120 image: juplo/rest-producer:1.0-SNAPSHOT
125 producer.bootstrap-server: kafka:9092
126 producer.client-id: producer-0
128 producer.partition: 0
131 image: juplo/rest-producer:1.0-SNAPSHOT
136 producer.bootstrap-server: kafka:9092
137 producer.client-id: producer-1
139 producer.partition: 1
142 image: juplo/simple-consumer:1.0-SNAPSHOT
143 command: kafka:9092 test my-group consumer