Deploy Supabase Self-Hosted with Docker Compose
Open-source Firebase alternative with PostgreSQL, GoTrue Auth, PostgREST, Realtime, and Studio.
supabase/postgres:15.6.1.1431. Production docker-compose.yml Configuration
Copy this stack definition or deploy directly from your Vexlo Cloud console with automatic Let's Encrypt TLS and persistent volume mounts.
services:
supabase:
image: supabase/postgres:15.6.1.143
restart: unless-stopped
ports:
- "8000:8000"
environment:
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-super-secret-db-password}
- JWT_SECRET=${JWT_SECRET:-32-char-jwt-signing-secret-token}
- SITE_URL=${SITE_URL:-https://app.yourdomain.com}
volumes:
- app_data:/var/lib/postgresql/data
depends_on:
- postgres
postgres:
image: postgres:16-alpine
restart: unless-stopped
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD:-change-me-db-password}
- POSTGRES_DB=supabase
volumes:
- postgres_data:/var/lib/postgresql/data
volumes:
app_data:
postgres_data:2. Required Environment Variables
| Variable | Default / Example | Description |
|---|---|---|
| POSTGRES_PASSWORD | super-secret-db-password | Master password for the Supabase PostgreSQL cluster. |
| JWT_SECRET | 32-char-jwt-signing-secret-token | HMAC secret used to sign anon and service_role JWTs. |
| SITE_URL | https://app.yourdomain.com | Default redirect base URL for Supabase Auth flows. |
Supabase Self-Hosted Self-Hosting FAQs
How much RAM is required to self-host Supabase Self-Hosted in production?
Supabase Self-Hosted requires a minimum of 3 GB RAM (Pro or Scale). On Vexlo Cloud Pro (₹149/mo via UPI in India or $5/mo globally), you get 2 vCPU, 3 GB RAM, and 2 managed databases—more than enough headroom for production workloads.
How do I expose Supabase Self-Hosted with automatic HTTPS/SSL on Vexlo Cloud?
Deploy the supabase/postgres:15.6.1.143 container on Vexlo Cloud, set the exposed port to 8000, and attach your custom domain in the Domains tab. Vexlo automatically provisions and renews Let's Encrypt TLS certificates.
How is persistent data backed up for Supabase Self-Hosted?
Mount /var/lib/postgresql/data to a persistent Docker volume and connect Vexlo Cloud's automated S3 / Cloudflare R2 backup scheduler to snapshot your database daily or weekly.
More 1-Click Docker Templates
View all 25 templates →n8n Workflow Automation
Self-hosted fair-code workflow automation with 400+ integrations and AI agent nodes.
Uptime Kuma
Self-hosted uptime monitoring dashboard with HTTP, TCP, DNS, and Telegram/Discord alerts.
PocketBase
Single-binary Go backend with embedded SQLite, real-time subscriptions, auth, and file storage.
Umami Analytics
Privacy-first, cookie-free web analytics alternative to Google Analytics 4 backed by PostgreSQL.