From: Kai Moritz Date: Fri, 6 Oct 2023 13:37:28 +0000 (+0200) Subject: Merge branch 'config/kraft' into grundlagen/docker X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=1c03b59f9323c6f37b4eb94d61f14684904d7858;p=demos%2Fkafka%2Ftraining Merge branch 'config/kraft' into grundlagen/docker --- 1c03b59f9323c6f37b4eb94d61f14684904d7858 diff --cc docker/docker-compose.yml index 3a99d56,39167d8..2b677c7 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@@ -11,16 -27,19 +11,17 @@@ services KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, CONTROLLER:PLAINTEXT, LOCALHOST:PLAINTEXT KAFKA_CFG_ADVERTISED_LISTENERS: BROKER://kafka-1:9092, LOCALHOST://localhost:9081 KAFKA_CFG_NODE_ID: 1 - KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 0@kafka-0:9092 + 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" + volumes: + - kafka-1:/bitnami/kafka ports: - 9081:9081 - depends_on: - - kafka-0 kafka-2: - image: bitnami/kafka:3.4 + image: bitnami/kafka:3.5.1 environment: KAFKA_ENABLE_KRAFT: 'yes' KAFKA_KRAFT_CLUSTER_ID: r7dMBY60T16TrNCGeXniLw @@@ -29,8 -49,7 +30,7 @@@ KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, CONTROLLER:PLAINTEXT, LOCALHOST:PLAINTEXT KAFKA_CFG_ADVERTISED_LISTENERS: BROKER://kafka-2:9092, LOCALHOST://localhost:9082 KAFKA_CFG_NODE_ID: 2 - KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 0@kafka-0:9092 + 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" @@@ -41,9 -62,11 +43,9 @@@ default: aliases: - kafka - depends_on: - - kafka-0 kafka-3: - image: bitnami/kafka:3.4 + image: bitnami/kafka:3.5.1 environment: KAFKA_ENABLE_KRAFT: 'yes' KAFKA_KRAFT_CLUSTER_ID: r7dMBY60T16TrNCGeXniLw @@@ -52,13 -76,16 +54,14 @@@ 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: 0@kafka-0:9092 + 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" + volumes: + - kafka-3:/bitnami/kafka ports: - 9083:9083 - depends_on: - - kafka-0 setup: