diff --git a/docker-compose-core.yaml b/docker-compose-core.yaml index 3e59821e..eadfdc1c 100644 --- a/docker-compose-core.yaml +++ b/docker-compose-core.yaml @@ -28,7 +28,7 @@ services: - "JAVA_TOOL_OPTIONS=-Xms512m -Xmx512m" restart: always healthcheck: - test: [ "CMD-SHELL", "curl -f http://localhost:9600/ready" ] + test: [ "CMD-SHELL", "timeout 10s bash -c ':> /dev/tcp/127.0.0.1/9600' || exit 1" ] interval: 30s timeout: 5s retries: 5 diff --git a/docker-compose.yaml b/docker-compose.yaml index 7f022c79..29626c90 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -31,7 +31,7 @@ services: - "JAVA_TOOL_OPTIONS=-Xms512m -Xmx512m" restart: always healthcheck: - test: [ "CMD-SHELL", "curl -f http://localhost:9600/ready" ] + test: [ "CMD-SHELL", "timeout 10s bash -c ':> /dev/tcp/127.0.0.1/9600' || exit 1" ] interval: 30s timeout: 5s retries: 5