TMP
authorKai Moritz <kai@juplo.de>
Sat, 18 Feb 2023 17:39:14 +0000 (18:39 +0100)
committerKai Moritz <kai@juplo.de>
Sat, 18 Feb 2023 17:39:14 +0000 (18:39 +0100)
docker-compose.yml

index da8fb95..9eea469 100644 (file)
@@ -1,16 +1,24 @@
-version: '2'
+version: '3'
 
 services:
   zookeeper:
-    image: bitnami/zookeeper
-    environment:
-      - 'ALLOW_ANONYMOUS_LOGIN=yes'
+    image: bitnami/zookeeper:latest
+    ports:
+      - "2181:2181"
+
   kafka:
-    image: bitnami/kafka:3.4.0
+    image: bitnami/kafka:latest
+    depends_on:
+      - zookeeper
+    ports:
+      - "9092:9092"
     environment:
-      - KAFKA_CFG_ZOOKEEPER_CONNECT=zookeeper:2181
-      - ALLOW_PLAINTEXT_LISTENER=yes
-  exporter:
-    image: bitnami/kafka-exporter
+      KAFKA_CFG_ZOOKEEPER_CONNECT: zookeeper:2181
+      ALLOW_PLAINTEXT_LISTENER: "yes"
+
+  kafka_exporter:
+    image: danielqsj/kafka-exporter
     ports:
       - "9308:9308"
+    environment:
+      KAFKA_SERVER: kafka:9092