Volumes für die Log-/Config-Daten hinzugefügt
authorKai Moritz <kai@juplo.de>
Fri, 6 Oct 2023 12:16:24 +0000 (14:16 +0200)
committerKai Moritz <kai@juplo.de>
Fri, 6 Oct 2023 13:00:27 +0000 (15:00 +0200)
docker-compose.yml

index 65f2622..d18c082 100644 (file)
@@ -13,6 +13,8 @@ services:
       KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 0@kafka-0:9092
       KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
       KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
+    volumes:
+      - kafka-0:/bitnami/kafka
 
   kafka-1:
     image: bitnami/kafka:3.5.1
@@ -29,6 +31,8 @@ services:
       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:
@@ -49,6 +53,8 @@ services:
       KAFKA_CFG_INTER_BROKER_LISTENER_NAME: BROKER
       KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 3
       KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false"
+    volumes:
+      - kafka-2:/bitnami/kafka
     ports:
       - 9092:9082
       - 9082:9082
@@ -74,6 +80,8 @@ services:
       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:
@@ -117,3 +125,9 @@ services:
     command: sleep infinity
     depends_on:
       - setup
+
+volumes:
+  kafka-0:
+  kafka-1:
+  kafka-2:
+  kafka-3: