fix(docker): fix healthchecks for PostgREST, Storage, Studio
Some checks failed
Workflow / ʦ TypeScript (push) Failing after 5m35s
Workflow / ⚫️ Test (push) Has been skipped

- PostgREST: replace wget healthcheck with TCP socket check — PostgREST
  v12 is a minimal image without wget/curl
- All services: add start_period to healthchecks to avoid premature
  unhealthy marking during initial startup
This commit is contained in:
Zaid Marzguioui
2026-03-31 18:30:06 +02:00
parent a2aa5598b5
commit e7e5d4126a

View File

@@ -134,10 +134,11 @@ services:
PGRST_JWT_SECRET: ${JWT_SECRET} PGRST_JWT_SECRET: ${JWT_SECRET}
PGRST_DB_USE_LEGACY_GUCS: "false" PGRST_DB_USE_LEGACY_GUCS: "false"
healthcheck: healthcheck:
test: ["CMD-SHELL", "wget --no-verbose --tries=1 --spider http://localhost:3000/ || exit 1"] test: ["CMD-SHELL", "head -c0 </dev/tcp/localhost/3000 || exit 1"]
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
start_period: 15s
# ===================================================== # =====================================================
# Supabase Realtime # Supabase Realtime
@@ -208,6 +209,7 @@ services:
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
start_period: 15s
# ===================================================== # =====================================================
# Supabase imgproxy (image transformations) # Supabase imgproxy (image transformations)
@@ -266,6 +268,7 @@ services:
interval: 10s interval: 10s
timeout: 5s timeout: 5s
retries: 5 retries: 5
start_period: 30s
# ===================================================== # =====================================================
# Supabase Inbucket (Email testing) # Supabase Inbucket (Email testing)