From: Kai Moritz Date: Fri, 28 Oct 2022 13:56:14 +0000 (+0200) Subject: WIP X-Git-Url: http://juplo.de/gitweb/?a=commitdiff_plain;h=b86d293cf74a921847e3de3b080d696f99f77c17;p=demos%2Fkafka%2Ftraining WIP --- diff --git a/docker-compose.yml b/docker-compose.yml index 024b4d8..1899b8c 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -15,6 +15,8 @@ services: ALLOW_PLAINTEXT_LISTENER: 'yes' KAFKA_CFG_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 KAFKA_CFG_AUTO_CREATE_TOPICS_ENABLE: "false" + healthcheck: + test: [ "CMD", "kafka-topics.sh", "--bootstrap-server", ":9092", "--list" ] kafka-1: image: bitnami/kafka:3.3.1 @@ -36,6 +38,9 @@ services: - 9081:9081 healthcheck: test: [ "CMD", "kafka-topics.sh", "--bootstrap-server", ":9092", "--list" ] + depends_on: + kafka-0: + condition: service_healthy kafka-2: image: bitnami/kafka:3.3.1 @@ -62,6 +67,9 @@ services: - kafka healthcheck: test: [ "CMD", "kafka-topics.sh", "--bootstrap-server", ":9092", "--list" ] + depends_on: + kafka-0: + condition: service_healthy kafka-3: image: bitnami/kafka:3.3.1 @@ -83,6 +91,9 @@ services: - 9083:9083 healthcheck: test: [ "CMD", "kafka-topics.sh", "--bootstrap-server", ":9092", "--list" ] + depends_on: + kafka-0: + condition: service_healthy setup: image: juplo/toolbox