+ networks:
+ default:
+ aliases:
+ - kafka
+
+ kafka-3:
+ image: bitnami/kafka:3.4
+ environment:
+ KAFKA_ENABLE_KRAFT: 'yes'
+ KAFKA_KRAFT_CLUSTER_ID: r7dMBY60T16TrNCGeXniLw
+ KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
+ KAFKA_CFG_LISTENERS: CONTROLLER://:9093, BROKER://:9092, LOCALHOST://:9083
+ KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, CONTROLLER:PLAINTEXT, LOCALHOST:PLAINTEXT
+ KAFKA_CFG_ADVERTISED_LISTENERS: BROKER://kafka-3:9092, LOCALHOST://localhost:9083
+ KAFKA_CFG_NODE_ID: 3
+ KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 1@kafka-1:9093, 2@kafka-2:9093, 3@kafka-3:9093
+ ALLOW_PLAINTEXT_LISTENER: 'yes'
+ KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
+ KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
+ KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
+ ports:
+ - 9083:9083
+