Producer und Consumer-Group hinzugefĆ¼gt
authorKai Moritz <kai@juplo.de>
Wed, 11 Oct 2023 16:20:37 +0000 (18:20 +0200)
committerKai Moritz <kai@juplo.de>
Mon, 16 Oct 2023 20:39:44 +0000 (22:39 +0200)
docker/docker-compose.yml

index 51858a2..65207a2 100644 (file)
@@ -267,6 +267,22 @@ services:
       - kafka-2
       - kafka-3
 
+  producer:
+    image: juplo/simple-producer:1.0-SNAPSHOT
+    command: kafka:9092 test producer
+
+  consumer-1:
+    image: juplo/simple-consumer:1.0-SNAPSHOT
+    command: kafka:9092 test my-group consumer
+
+  consumer-2:
+    image: juplo/simple-consumer:1.0-SNAPSHOT
+    command: kafka:9092 test my-group consumer-2
+
+  consumer-3:
+    image: juplo/simple-consumer:1.0-SNAPSHOT
+    command: kafka:9092 test my-group consumer-3
+
 volumes:
   zookeeper-data:
   zookeeper-log: