diff --git a/.ci/docker/docker-compose.yml b/.ci/docker/docker-compose.yml index a04da04cb8..d380344c6c 100644 --- a/.ci/docker/docker-compose.yml +++ b/.ci/docker/docker-compose.yml @@ -149,6 +149,13 @@ services: - nodezookeeperdata:/bitnami environment: - ALLOW_ANONYMOUS_LOGIN=yes + healthcheck: + # Using 'srvr' instead of the more common 'ruok' because this bitnami + # image does not have 'ruok' on the '4lw.commands.whitelist' in zoo.cfg. + test: ["CMD-SHELL", "echo srvr | nc -w 2 localhost 2181"] + interval: 5s + timeout: 5s + retries: 5 kafka: # https://hub.docker.com/r/bitnami/kafka/tags diff --git a/test/docker-compose.yml b/test/docker-compose.yml index 2d284d5ab3..2562df66ab 100644 --- a/test/docker-compose.yml +++ b/test/docker-compose.yml @@ -141,6 +141,13 @@ services: - nodezookeeperdata:/var/lib/zookeeper/data environment: - ALLOW_ANONYMOUS_LOGIN=yes + healthcheck: + # Using 'srvr' instead of the more common 'ruok' because this bitnami + # image does not have 'ruok' on the '4lw.commands.whitelist' in zoo.cfg. + test: ["CMD-SHELL", "echo srvr | nc -w 2 localhost 2181"] + interval: 5s + timeout: 5s + retries: 5 kafka: # https://hub.docker.com/r/bitnami/kafka/tags