From b86d293cf74a921847e3de3b080d696f99f77c17 Mon Sep 17 00:00:00 2001 From: Kai Moritz Date: Fri, 28 Oct 2022 15:56:14 +0200 Subject: [PATCH] WIP --- docker-compose.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 -- 2.20.1