diff --git a/docker-compose.yml b/docker-compose.yml index 53387284a..d63424da8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -42,7 +42,7 @@ services: KAFKA_VERSION: ${KAFKA_VERSION:-3.5.1} SCALA_VERSION: ${SCALA_VERSION:-2.13} healthcheck: - test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-broker-api-versions.sh", "--bootstrap-server=kafka-1:9091"] + test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-configs.sh", "--bootstrap-server", "kafka-1:9091", "--broker", "1", "--describe"] interval: 10s timeout: 5s retries: 10 @@ -78,7 +78,7 @@ services: KAFKA_VERSION: ${KAFKA_VERSION:-3.5.1} SCALA_VERSION: ${SCALA_VERSION:-2.13} healthcheck: - test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-broker-api-versions.sh", "--bootstrap-server=kafka-2:9091"] + test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-configs.sh", "--bootstrap-server", "kafka-2:9091", "--broker", "2", "--describe"] interval: 10s timeout: 5s retries: 10 @@ -114,7 +114,7 @@ services: KAFKA_VERSION: ${KAFKA_VERSION:-3.5.1} SCALA_VERSION: ${SCALA_VERSION:-2.13} healthcheck: - test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-broker-api-versions.sh", "--bootstrap-server=kafka-3:9091"] + test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-configs.sh", "--bootstrap-server", "kafka-3:9091", "--broker", "3", "--describe"] interval: 10s timeout: 5s retries: 10 @@ -150,7 +150,7 @@ services: KAFKA_VERSION: ${KAFKA_VERSION:-3.5.1} SCALA_VERSION: ${SCALA_VERSION:-2.13} healthcheck: - test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-broker-api-versions.sh", "--bootstrap-server=kafka-4:9091"] + test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-configs.sh", "--bootstrap-server", "kafka-4:9091", "--broker", "4", "--describe"] interval: 10s timeout: 5s retries: 10 @@ -186,7 +186,7 @@ services: KAFKA_VERSION: ${KAFKA_VERSION:-3.5.1} SCALA_VERSION: ${SCALA_VERSION:-2.13} healthcheck: - test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-broker-api-versions.sh", "--bootstrap-server=kafka-5:9091"] + test: ["CMD", "/opt/kafka-${KAFKA_VERSION:-3.5.1}/bin/kafka-configs.sh", "--bootstrap-server", "kafka-5:9091", "--broker", "5", "--describe"] interval: 10s timeout: 5s retries: 10