Merge pull request #1188 from AppFlowy-IO/better-gotrue-healthcheck

chore: use curl for gotrue health check
This commit is contained in:
Khor Shu Heng 2025-01-22 17:26:46 +08:00 committed by GitHub
commit 2c7f0131c4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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: