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>
Sun, 5 Nov 2023 09:23:35 +0000 (10:23 +0100)
docker/docker-compose.yml

index dd7c830..3cc8402 100644 (file)
@@ -187,6 +187,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-1
+
+  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: