From 0db598994a96f01aee149e53e645a39408eb62aa Mon Sep 17 00:00:00 2001 From: Arthur Geron <3487334+arthurgeron@users.noreply.github.com> Date: Thu, 19 Sep 2024 17:38:53 -0300 Subject: [PATCH] fix: syntax for health checks --- docker/docker-compose.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 1f87c3c3..c64e7182 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -14,9 +14,9 @@ services: - 8545:9545 - ${DEPLOYMENTS_PORT:-8080}:8081 healthcheck: - test: ["CMD", "curl", "-f", "-H", "Content-Type: application/json", "-d", "{\"jsonrpc\":\"2.0\",\"id\":0,\"method\":\"net_version\",\"params\":[]}", "http://localhost:9545"] + test: "curl -f -H \"Content-Type: application/json\" -d '{\"jsonrpc\":\"2.0\",\"id\":0,\"method\":\"net_version\",\"params\":[]}' http://localhost:9545 || exit 1" interval: 5s - timeout: 5s + timeout: 2s retries: 10000 networks: - app-network @@ -39,10 +39,10 @@ services: # expose the service to the host for integration testing - ${FUEL_CORE_HTTP_PORT:-4000}:4001 healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:4001/v1/health || exit 1"] - interval: 10s - timeout: 10s - retries: 100 + test: curl --fail http://localhost:4001/v1/health || exit 1 + interval: 4s + timeout: 3s + retries: 200 networks: - app-network