The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Add Healthchecks to docker-compose
Ruggero Tomaselli4d2ab3cb3a57
diff --git a/docker/docker-compose.yml b/docker/docker-compose.ymlindex bf0d26a0597..0fb8c55acd6 100644--- a/docker/docker-compose.yml+++ b/docker/docker-compose.yml@@ -11,6 +11,11 @@ services:container_name: supabase-studioimage: supabase/studio:20221214-4eecc99restart: unless-stopped+ healthcheck:+ test: [ "CMD", "node", "-e", "require('http').get('http://localhost:3000/api/profile', (r) => {if (r.statusCode !== 200) throw new Error(r.statusCode)})" ]+ timeout: 5s+ interval: 5s+ retries: 3ports:- ${STUDIO_PORT}:3000/tcpenvironment:@@ -51,6 +56,11 @@ services:depends_on:db: # Disable this if you are using an external Postgres databasecondition: service_healthy+ healthcheck:+ test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9999/health" ]+ timeout: 5s+ interval: 5s+ retries: 3restart: unless-stoppedenvironment:GOTRUE_API_HOST: 0.0.0.0@@ -95,6 +105,11 @@ services:depends_on:db: # Disable this if you are using an external Postgres databasecondition: service_healthy+ healthcheck:+ test: [ "CMD", "printf", "\\0", ">", "/dev/tcp/localhost/4000" ]+ timeout: 5s+ interval: 5s+ retries: 3restart: unless-stoppedenvironment:PGRST_DB_URI: postgres://authenticator:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}@@ -109,6 +124,11 @@ services:depends_on:db: # Disable this if you are using an external Postgres databasecondition: service_healthy+ healthcheck:+ test: [ "CMD", "printf", "\\0", ">", "/dev/tcp/localhost/4000" ]+ timeout: 5s+ interval: 5s+ retries: 3restart: unless-stoppedenvironment:PORT: 4000@@ -139,6 +159,11 @@ services:condition: service_startedimgproxy:condition: service_started+ healthcheck:+ test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/status" ]+ timeout: 5s+ interval: 5s+ retries: 3restart: unless-stoppedenvironment:ANON_KEY: ${ANON_KEY}@@ -161,6 +186,11 @@ services:imgproxy:container_name: supabase-imgproxyimage: darthsim/imgproxy:v3.11+ healthcheck:+ test: [ "CMD", "imgproxy", "health" ]+ timeout: 5s+ interval: 5s+ retries: 3environment:IMGPROXY_BIND: ":5001"IMGPROXY_LOCAL_FILESYSTEM_ROOT: /