Service `cli` zu dem Setup hinzugefĆ¼gt
[demos/kafka/monitoring] / docker-compose.yml
index e1b6160..d0af4c9 100644 (file)
@@ -155,11 +155,35 @@ services:
 
   producer:
     image: juplo/simple-producer:1.0-SNAPSHOT
+    entrypoint: java
+        -Dcom.sun.management.jmxremote=true
+        -Dcom.sun.management.jmxremote.port=7000
+        -Dcom.sun.management.jmxremote.local.only=false
+        -Dcom.sun.management.jmxremote.authenticate=false
+        -Dcom.sun.management.jmxremote.ssl=false
+        -jar /opt/app.jar
     command: kafka:9092 test producer
+    ports:
+      - 7010:7000
 
   consumer:
     image: juplo/simple-consumer:1.0-SNAPSHOT
+    entrypoint: java
+        -Dcom.sun.management.jmxremote=true
+        -Dcom.sun.management.jmxremote.port=7000
+        -Dcom.sun.management.jmxremote.local.only=false
+        -Dcom.sun.management.jmxremote.authenticate=false
+        -Dcom.sun.management.jmxremote.ssl=false
+        -jar /opt/app.jar
     command: kafka:9092 test my-group consumer
+    ports:
+      - 7020:7000
+
+  cli:
+    image: juplo/toolbox
+    command: sleep infinity
+    depends_on:
+      - setup
 
 volumes: