Start von Service `setup` startet auch `cli`
authorKai Moritz <kai@juplo.de>
Fri, 13 Oct 2023 11:39:45 +0000 (13:39 +0200)
committerKai Moritz <kai@juplo.de>
Mon, 16 Oct 2023 20:39:44 +0000 (22:39 +0200)
docker/docker-compose.yml

index 23c53a1..3820311 100644 (file)
@@ -114,6 +114,15 @@ services:
     depends_on:
       - schema-registry
 
+  cli:
+    image: juplo/toolbox
+    command: sleep infinity
+    stop_grace_period: 0s
+    depends_on:
+      - kafka-1
+      - kafka-2
+      - kafka-3
+
   setup:
     image: juplo/toolbox
     command:
@@ -143,9 +152,7 @@ services:
         fi
     stop_grace_period: 0s
     depends_on:
-      - kafka-1
-      - kafka-2
-      - kafka-3
+      - cli
 
   akhq:
     image: tchiotludo/akhq:0.23.0
@@ -168,13 +175,6 @@ services:
       - kafka-2
       - kafka-3
 
-  cli:
-    image: juplo/toolbox
-    command: sleep infinity
-    stop_grace_period: 0s
-    depends_on:
-      - setup
-
 volumes:
   zookeeper-data:
   zookeeper-log: