fix: use supabase/postgres image for auth schema compatibility

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-19 16:25:51 -04:00
parent ea272d229b
commit 5221c35f8c

View File

@@ -1,16 +1,16 @@
services: services:
# PostgreSQL database # Supabase PostgreSQL (includes auth schema + extensions)
db: db:
image: postgres:16-alpine image: supabase/postgres:15.8.1.060
restart: unless-stopped restart: unless-stopped
environment: environment:
POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres} POSTGRES_PASSWORD: ${DB_PASSWORD:-postgres}
POSTGRES_DB: calctext POSTGRES_DB: postgres
volumes: volumes:
- calctext-db:/var/lib/postgresql/data - calctext-db:/var/lib/postgresql/data
- ./supabase/migrations:/docker-entrypoint-initdb.d - ./supabase/migrations:/docker-entrypoint-initdb.d/migrations
healthcheck: healthcheck:
test: pg_isready -U postgres test: pg_isready -U postgres -d postgres
interval: 5s interval: 5s
timeout: 5s timeout: 5s
retries: 10 retries: 10
@@ -27,7 +27,7 @@ services:
GOTRUE_API_PORT: 9999 GOTRUE_API_PORT: 9999
API_EXTERNAL_URL: ${SITE_URL:-http://localhost:5173}/auth API_EXTERNAL_URL: ${SITE_URL:-http://localhost:5173}/auth
GOTRUE_DB_DRIVER: postgres GOTRUE_DB_DRIVER: postgres
GOTRUE_DB_DATABASE_URL: postgres://postgres:${DB_PASSWORD:-postgres}@db:5432/calctext?sslmode=disable GOTRUE_DB_DATABASE_URL: postgres://postgres:${DB_PASSWORD:-postgres}@db:5432/postgres?sslmode=disable
GOTRUE_SITE_URL: ${SITE_URL:-http://localhost:5173} GOTRUE_SITE_URL: ${SITE_URL:-http://localhost:5173}
GOTRUE_URI_ALLOW_LIST: ${SITE_URL:-http://localhost:5173}/** GOTRUE_URI_ALLOW_LIST: ${SITE_URL:-http://localhost:5173}/**
GOTRUE_DISABLE_SIGNUP: 'false' GOTRUE_DISABLE_SIGNUP: 'false'
@@ -46,7 +46,7 @@ services:
db: db:
condition: service_healthy condition: service_healthy
environment: environment:
PGRST_DB_URI: postgres://postgres:${DB_PASSWORD:-postgres}@db:5432/calctext PGRST_DB_URI: postgres://postgres:${DB_PASSWORD:-postgres}@db:5432/postgres
PGRST_DB_SCHEMAS: public PGRST_DB_SCHEMAS: public
PGRST_DB_ANON_ROLE: anon PGRST_DB_ANON_ROLE: anon
PGRST_JWT_SECRET: ${JWT_SECRET} PGRST_JWT_SECRET: ${JWT_SECRET}
@@ -61,7 +61,7 @@ services:
condition: service_healthy condition: service_healthy
environment: environment:
PORT: 4000 PORT: 4000
DATABASE_URL: postgres://postgres:${DB_PASSWORD:-postgres}@db:5432/calctext DATABASE_URL: postgres://postgres:${DB_PASSWORD:-postgres}@db:5432/postgres
JWT_SECRET: ${JWT_SECRET} JWT_SECRET: ${JWT_SECRET}
# Web frontend (nginx + static files) # Web frontend (nginx + static files)