fix: Postgres auth + worker startup
This commit is contained in:
+4
-4
@@ -8,20 +8,20 @@ services:
|
||||
POSTGRES_USER: ${POSTGRES_USER:-postgres}
|
||||
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
|
||||
POSTGRES_DB: ${POSTGRES_DB:-postgres}
|
||||
POSTGRES_HOST_AUTH_METHOD: trust
|
||||
volumes:
|
||||
- ./data/db:/var/lib/postgresql/data
|
||||
- ./supabase/postgresql.conf:/etc/postgresql.conf:ro
|
||||
- ./supabase/pg_hba.conf:/etc/postgresql/pg_hba.conf:ro
|
||||
- ./supabase/migrations/00-run-init.sh:/docker-entrypoint-initdb.d/00-run-init.sh:ro
|
||||
- ./supabase/migrations/01-init.sql:/docker-entrypoint-initdb.d/01-init.sql:ro
|
||||
- ./supabase/migrations/post-boot.sql:/docker-entrypoint-initdb.d/post-boot.sql:ro
|
||||
command: >
|
||||
postgres
|
||||
-c config_file=/etc/postgresql.conf
|
||||
-c hba_file=/etc/postgresql/pg_hba.conf
|
||||
-c wal_level=logical
|
||||
-c max_wal_senders=0
|
||||
-c max_replication_slots=0
|
||||
-c idle_in_transaction_session_timeout=1min
|
||||
-c jsonb_output_as_text=true
|
||||
ports:
|
||||
- "55632:5432"
|
||||
healthcheck:
|
||||
@@ -34,7 +34,7 @@ services:
|
||||
image: postgrest/postgrest:v12.2.0
|
||||
restart: unless-stopped
|
||||
environment:
|
||||
PGRST_DB_URI: postgres://authenticator:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB:-postgres}
|
||||
PGRST_DB_URI: postgres://authenticator@db:5432/${POSTGRES_DB:-postgres}
|
||||
PGRST_DB_SCHEMAS: public
|
||||
PGRST_DB_ANON_ROLE: authenticator
|
||||
PGRST_JWT_SECRET: ${JWT_SECRET:-your-super-secret-jwt-key-change-in-production}
|
||||
|
||||
Reference in New Issue
Block a user