Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix: use http health check to self-hosted realtime (#25863)

Han Qiao77cc94072bbd
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index ea0e767f7a3..264eef21582 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -182,9 +182,14 @@ services:
test:
[
"CMD",
- "bash",
- "-c",
- "printf \\0 > /dev/tcp/localhost/4000"
+ "curl",
+ "-sSfL",
+ "--head",
+ "-o",
+ "/dev/null",
+ "-H",
+ "Authorization: Bearer ${ANON_KEY}",
+ "http://localhost:4000/api/tenants/realtime-dev/health"
]
timeout: 5s
interval: 5s