Self-host Supabase
Postgres-native backend platform bundling auth, realtime subscriptions, storage, and edge functions behind a single API gateway. The open-source Firebase alternative.
Key facts
Pick Supabase when you want a Postgres-native backend — auth, realtime, storage, and edge functions on top of a real relational database you can query and back up like any other Postgres install. Budget a genuine box: the official Compose stack is a dozen-plus containers and wants 4 GB of RAM. If you only need auth and a data API on SQLite, PocketBase is dramatically less to run.
Follow the Supabase deploy guide →What you need
- Any VPS with at least 4096 MB of RAM
- A domain you control — most self-hosted setups need HTTPS in front of them
- About the better part of a day
Install
Run these commands on your server:
# Supabase — official self-hosting via Docker Compose
git clone --depth 1 https://github.com/supabase/supabase
mkdir supabase-project && cp -rf supabase/docker/* supabase-project && cp supabase/docker/.env.example supabase-project/.env
cd supabase-project
# generate real secrets for POSTGRES_PASSWORD, JWT_SECRET, etc. in .env before starting
docker compose pull
docker compose up -d # → http://SERVER_IP:8000 (Studio via Kong)What you take on
Supabase self-hosted is the same open-source engine as the cloud product, but you inherit what the paid platform quietly handles for you: