remove db health check for dependancies

This commit is contained in:
jared committed 2023-01-28 16:03:32 +11:00
1 parent 91abfe5dff
commit 9764e51a15
1 file changed
+15 -10
+15 -10
View File
@@ -52,8 +52,9 @@ services:
container_name: supabase-auth container_name: supabase-auth
image: supabase/gotrue:v2.40.1 image: supabase/gotrue:v2.40.1
depends_on: depends_on:
db: # Disable this if you are using an external Postgres database - db
condition: service_healthy # db: # Disable this if you are using an external Postgres database
# condition: service_healthy
healthcheck: healthcheck:
test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9999/health" ] test: [ "CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:9999/health" ]
timeout: 5s timeout: 5s
@@ -101,8 +102,9 @@ services:
container_name: supabase-rest container_name: supabase-rest
image: postgrest/postgrest:v9.0.1.20220717 image: postgrest/postgrest:v9.0.1.20220717
depends_on: depends_on:
db: # Disable this if you are using an external Postgres database - db
condition: service_healthy # db: # Disable this if you are using an external Postgres database
# condition: service_healthy
restart: unless-stopped restart: unless-stopped
environment: environment:
PGRST_DB_URI: postgres://authenticator:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} PGRST_DB_URI: postgres://authenticator:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB}
@@ -115,8 +117,9 @@ services:
container_name: realtime-dev.supabase-realtime container_name: realtime-dev.supabase-realtime
image: supabase/realtime:v2.1.0 image: supabase/realtime:v2.1.0
depends_on: depends_on:
db: # Disable this if you are using an external Postgres database - db
condition: service_healthy # db: # Disable this if you are using an external Postgres database
# condition: service_healthy
healthcheck: healthcheck:
test: [ "CMD", "bash", "-c", "printf \\0 > /dev/tcp/localhost/4000" ] test: [ "CMD", "bash", "-c", "printf \\0 > /dev/tcp/localhost/4000" ]
timeout: 5s timeout: 5s
@@ -146,8 +149,9 @@ services:
container_name: supabase-storage container_name: supabase-storage
image: supabase/storage-api:v0.26.1 image: supabase/storage-api:v0.26.1
depends_on: depends_on:
db: # Disable this if you are using an external Postgres database - db
condition: service_healthy # db: # Disable this if you are using an external Postgres database
# condition: service_healthy
rest: rest:
condition: service_started condition: service_started
imgproxy: imgproxy:
@@ -195,8 +199,9 @@ services:
container_name: supabase-meta container_name: supabase-meta
image: supabase/postgres-meta:v0.59.0 image: supabase/postgres-meta:v0.59.0
depends_on: depends_on:
db: # Disable this if you are using an external Postgres database - db
condition: service_healthy # db: # Disable this if you are using an external Postgres database
# condition: service_healthy
restart: unless-stopped restart: unless-stopped
environment: environment:
PG_META_PORT: 8080 PG_META_PORT: 8080