Vorlage
[demos/kafka/training] / docker-compose.yml
index bd15793..7e058c9 100644 (file)
@@ -101,7 +101,15 @@ services:
   cli:
     image: juplo/toolbox
     command: sleep infinity
+    depends_on:
+      - kafka-1
+      - kafka-2
+      - kafka-3
 
   producer:
     image: juplo/simple-producer:1.0-SNAPSHOT
-    command: producer
+    command: kafka:9092 test producer
+
+  consumer:
+    image: juplo/simple-consumer:1.0-SNAPSHOT
+    command: kafka:9092 test my-group consumer