diff --git a/shenyu-integrated-test/shenyu-integrated-test-combination/docker-compose.yml b/shenyu-integrated-test/shenyu-integrated-test-combination/docker-compose.yml index cb1d1422382a..23acd633c8c6 100644 --- a/shenyu-integrated-test/shenyu-integrated-test-combination/docker-compose.yml +++ b/shenyu-integrated-test/shenyu-integrated-test-combination/docker-compose.yml @@ -17,10 +17,18 @@ version: "3.9" services: shenyu-zk: container_name: shenyu-zk - image: zookeeper:3.5 + image: zookeeper:latest restart: always networks: - shenyu + expose: + - 2181 + healthcheck: + test: [ "CMD-SHELL", "echo srvr | nc localhost 2181" ] + interval: 10s + timeout: 5s + retries: 3 + start_period: 30s shenyu-redis: image: redis:6.0-alpine @@ -186,6 +194,8 @@ services: depends_on: shenyu-admin: condition: service_healthy + shenyu-zk: + condition: service_healthy ports: - "9195:9195" networks: