OpenHosting works with any PostgreSQL, including Supabase's managed Postgres.
- Create a project at supabase.com.
- Open Project Settings → Database → Connection string and copy both
connection strings:
- Transaction pooler (port
6543) →DATABASE_URL, with?pgbouncer=trueappended - Session / direct (port
5432) →DIRECT_URL
- Transaction pooler (port
DATABASE_URL="postgresql://postgres.<ref>:<password>@aws-0-<region>.pooler.supabase.com:6543/postgres?pgbouncer=true"
DIRECT_URL="postgresql://postgres.<ref>:<password>@aws-0-<region>.pooler.supabase.com:5432/postgres"- Apply the schema and seed:
npm run db:migrate # applies prisma/migrations via DIRECT_URL
npm run db:seedAt runtime the app talks to Postgres through the Prisma pg driver adapter
using DATABASE_URL — point this at the pooled connection so serverless and
autoscaled deployments don't exhaust connections. Migrations need a direct
connection (PgBouncer's transaction mode can't run them), so the CLI uses
DIRECT_URL.
- OpenHosting keeps its own
userstable and session-based auth, so no Supabase Auth configuration is needed — Supabase is only the data layer. - Supabase handles backups, point-in-time recovery and scaling for you.
- Deploy the app container anywhere (Docker, Kubernetes, a PaaS) with those two variables set.