Stack Docker completo in infra/supabase/docker/ (vendored da supabase/supabase) per svincolare dev e produzione da Lovable Cloud. Include override di produzione che non espone porte pubblicamente e disattiva i servizi non usati da CrAPP (Realtime, Storage, imgproxy, Edge Functions, pooler), un Caddyfile con routing /api/* per un solo dominio, e i template .env per app e stack. Forzo inoltre il preset Nitro a node-server in vite.config.ts, dato che il default sarebbe Cloudflare Workers.
19 lines
707 B
YAML
19 lines
707 B
YAML
# Postgres 15 override for self-hosted Supabase.
|
|
#
|
|
# Postgres 17 is now the default in docker-compose.yml. Use this override to pin
|
|
# Postgres 15, for two cases:
|
|
# 1. An existing Postgres 15 deployment that has not been upgraded yet.
|
|
# 2. As the rollback target for utils/upgrade-pg17.sh (PG 15 and PG 17 use
|
|
# different postgres UIDs, so rollback must start with the PG 15 image).
|
|
#
|
|
# Usage:
|
|
# docker compose -f docker-compose.yml -f docker-compose.pg15.yml up -d
|
|
#
|
|
# To upgrade an existing Postgres 15 database to Postgres 17 in place, see:
|
|
# - https://supabase.com/docs/guides/self-hosting/postgres-upgrade-17
|
|
# - utils/upgrade-pg17.sh
|
|
|
|
services:
|
|
db:
|
|
image: supabase/postgres:15.8.1.085
|