From: Kai Moritz Date: Fri, 6 Oct 2023 17:13:41 +0000 (+0200) Subject: Schönere YAML-Syntax für `setup`-Service X-Git-Tag: grundlagen/docker---2023-10-signal~8 X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=aafac6f928c97f8587a683cecd7c365940c5e0de;p=demos%2Fkafka%2Ftraining Schönere YAML-Syntax für `setup`-Service --- diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 8eca89b..2991f81 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -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