937 B
937 B
Proxmox Deployment Guide (Starter)
Topology
- VM/CT 1: Postgres (or Supabase managed)
- VM/CT 2: Backend (FastAPI)
- VM/CT 3: Frontend (Nuxt SSR or static behind Nginx)
Environment
Backend:
DATABASE_URL=postgresql+asyncpg://USER:PASS@DB_HOST:5432/DBNAME- For Supabase: use the provided connection string (SSL), and forward JWT to Postgres for RLS.
Reverse Proxy (TLS)
Use Caddy or Nginx:
/api-> backend:8000/-> frontend:3000 (SSR) or static files
Database Migrations
Apply in order:
db/migrations/0001_core_schema.sqldb/migrations/0002_supabase_objects.sqldb/migrations/0003_row_filters.sqldb/migrations/0004_seed_demo.sql
Example:
psql "$DATABASE_URL" -f db/migrations/0001_core_schema.sql
psql "$DATABASE_URL" -f db/migrations/0002_supabase_objects.sql
psql "$DATABASE_URL" -f db/migrations/0003_row_filters.sql
psql "$DATABASE_URL" -f db/migrations/0004_seed_demo.sql