chore: use curl for gotrue health check

This commit is contained in:
khorshuheng 2025-01-22 17:23:56 +08:00
parent 626c8a5be4
commit f033e34ab1
1 changed files with 2 additions and 2 deletions

View File

@ -55,10 +55,10 @@ services:
postgres: postgres:
condition: service_healthy condition: service_healthy
healthcheck: healthcheck:
test: [ "CMD", "nc", "-z", "localhost", "9999" ] test: "curl --fail http://127.0.0.1:9999/health || exit 1"
interval: 5s interval: 5s
timeout: 5s timeout: 5s
retries: 6 retries: 12
image: appflowyinc/gotrue:${GOTRUE_VERSION:-latest} image: appflowyinc/gotrue:${GOTRUE_VERSION:-latest}
environment: environment:
# There are a lot of options to configure GoTrue. You can reference the example config: # There are a lot of options to configure GoTrue. You can reference the example config: