diff --git a/supabase/code/docker-compose.yml b/supabase/code/docker-compose.yml index a5ffd2f5e..dd42a6bdf 100644 --- a/supabase/code/docker-compose.yml +++ b/supabase/code/docker-compose.yml @@ -258,6 +258,11 @@ services: db: # Disable this if you are using an external Postgres database condition: service_healthy + healthcheck: + test: [ "CMD", "postgrest", "--ready" ] + interval: 5s + timeout: 5s + retries: 3 environment: PGRST_DB_URI: postgres://authenticator:${POSTGRES_PASSWORD}@${POSTGRES_HOST}:${POSTGRES_PORT}/${POSTGRES_DB} PGRST_DB_SCHEMAS: ${PGRST_DB_SCHEMAS} @@ -265,6 +270,9 @@ services: PGRST_DB_EXTRA_SEARCH_PATH: ${PGRST_DB_EXTRA_SEARCH_PATH:-public} PGRST_DB_ANON_ROLE: anon + PGRST_ADMIN_SERVER_PORT: 3001 + PGRST_ADMIN_SERVER_HOST: localhost + # PostgREST accepts a plain-text symmetric secret, a single JWK, or a JWKS. # For Podman, use either PGRST_JWT_SECRET: ${JWT_SECRET} or # PGRST_JWT_SECRET: ${JWT_JWKS} @@ -426,6 +434,12 @@ services: depends_on: kong: condition: service_healthy + healthcheck: + test: [ "CMD", "bash", "-c", "exec 3<>/dev/tcp/127.0.0.1/9000" ] + interval: 10s + timeout: 5s + retries: 3 + start_period: 20s environment: # Legacy symmetric HS256 key JWT_SECRET: ${JWT_SECRET}