From f033e34ab1b2109cea2400fff417439fba6e3386 Mon Sep 17 00:00:00 2001 From: khorshuheng Date: Wed, 22 Jan 2025 17:23:56 +0800 Subject: [PATCH] chore: use curl for gotrue health check --- docker-compose.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index c16eee8b..9c897fbb 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -55,10 +55,10 @@ services: postgres: condition: service_healthy healthcheck: - test: [ "CMD", "nc", "-z", "localhost", "9999" ] + test: "curl --fail http://127.0.0.1:9999/health || exit 1" interval: 5s timeout: 5s - retries: 6 + retries: 12 image: appflowyinc/gotrue:${GOTRUE_VERSION:-latest} environment: # There are a lot of options to configure GoTrue. You can reference the example config: