Skip to content

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

Fix Healthchecks with printf

Ruggero Tomasellif77ac24ddd75
diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml
index 0fb8c55acd6..d78eb40cfc8 100644
--- a/docker/docker-compose.yml
+++ b/docker/docker-compose.yml
@@ -106,7 +106,7 @@ services:
db: # Disable this if you are using an external Postgres database
condition: service_healthy
healthcheck:
- test: [ "CMD", "printf", "\\0", ">", "/dev/tcp/localhost/4000" ]
+ test: [ "CMD", "bash", "-c", "printf \\0 > /dev/tcp/localhost/3000" ]
timeout: 5s
interval: 5s
retries: 3
@@ -125,7 +125,7 @@ services:
db: # Disable this if you are using an external Postgres database
condition: service_healthy
healthcheck:
- test: [ "CMD", "printf", "\\0", ">", "/dev/tcp/localhost/4000" ]
+ test: [ "CMD", "bash", "-c", "printf \\0 > /dev/tcp/localhost/4000" ]
timeout: 5s
interval: 5s
retries: 3