Kafka-Cluster auf KRAFT umgestellt config/s3-sink-connector
authorKai Moritz <kai@juplo.de>
Sun, 5 May 2024 07:37:40 +0000 (09:37 +0200)
committerKai Moritz <kai@juplo.de>
Sun, 5 May 2024 07:37:40 +0000 (09:37 +0200)
docker/docker-compose.yml

index ac11999..e275890 100644 (file)
@@ -1,23 +1,17 @@
 services:
-  zookeeper:
-    image: confluentinc/cp-zookeeper:7.5.1
-    environment:
-      ZOOKEEPER_CLIENT_PORT: 2181
-    ports:
-      - 2181:2181
-    volumes:
-      - zookeeper-data:/var/lib/zookeeper/data
-      - zookeeper-log:/var/lib/zookeeper/log
 
   kafka:
     image: confluentinc/cp-kafka:7.5.1
     environment:
-      KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181
-      KAFKA_LISTENERS: BROKER://:9092, LOCALHOST://:9082
-      KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
+      KAFKA_LISTENERS: CONTROLLER://:9072, BROKER://:9092, LOCALHOST://:9082
+      KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT, BROKER:PLAINTEXT, LOCALHOST:PLAINTEXT
       KAFKA_ADVERTISED_LISTENERS: BROKER://kafka:9092, LOCALHOST://localhost:9082
-      KAFKA_BROKER_ID: 1
+      KAFKA_NODE_ID: 1
       KAFKA_INTER_BROKER_LISTENER_NAME: BROKER
+      KAFKA_PROCESS_ROLES: broker, controller
+      KAFKA_CONTROLLER_QUORUM_VOTERS: 1@kafka:9072
+      KAFKA_CONTROLLER_LISTENER_NAMES: CONTROLLER
+      CLUSTER_ID: MkU3OEVBNTcwNTJENDM2Qk
       KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
       KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
       KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
@@ -29,8 +23,6 @@ services:
       - 9092:9082
       - 9082:9082
     stop_grace_period: 120s
-    depends_on:
-      - zookeeper
 
   schema-registry:
     image: confluentinc/cp-schema-registry:7.5.1
@@ -117,18 +109,6 @@ services:
       - connect
       - minio
 
-  zoonavigator:
-    image: elkozmon/zoonavigator:1.1.2
-    ports:
-      - "8000:80"
-    environment:
-      HTTP_PORT: 80
-      CONNECTION_JUPLO_NAME: juplo
-      CONNECTION_JUPLO_CONN: zookeeper:2181
-      AUTO_CONNECT_CONNECTION_ID: JUPLO
-    depends_on:
-      - zookeeper
-
   akhq:
     image: tchiotludo/akhq:0.23.0
     ports:
@@ -161,7 +141,5 @@ services:
     command: server /data --console-address ":9001"
 
 volumes:
-  zookeeper-data:
-  zookeeper-log:
   kafka-data:
   minio: