Schönere YAML-Syntax für `setup`-Service
authorKai Moritz <kai@juplo.de>
Fri, 6 Oct 2023 17:13:41 +0000 (19:13 +0200)
committerKai Moritz <kai@juplo.de>
Mon, 16 Oct 2023 19:53:36 +0000 (21:53 +0200)
docker/docker-compose.yml

index 8eca89b..2991f81 100644 (file)
@@ -113,8 +113,10 @@ services:
 
   setup:
     image: juplo/toolbox
-    command: >
-      bash -c "
+    command:
+      - bash
+      - -c
+      - |
         if [ -e INITIALIZED ]
         then
           echo -n Bereits konfiguriert: 
@@ -135,7 +137,6 @@ services:
           && kafka-topics --bootstrap-server kafka:9092 --describe --topic test \
           && date > INITIALIZED
         fi
-      "
     depends_on:
       - kafka-1
       - kafka-2