Self-Hosting Supabase: What You Take On and What It Costs
On this page
Self-hosting Supabase puts server upkeep and backups on your team. See what you lose, what a server costs and how to decide before you move.
Self-hosting Supabase means you run the open source Supabase stack on your own server and take over the work Supabase does on its platform: patching, backups, upgrades, security and uptime. The software carries no plan fee. You pay for servers and storage, and your team spends the hours. This guide is for founders and small teams who are weighing that trade before they move an app.
The limits, prices and commands below come from Supabase and AWS pages checked on 30 November 2026.
Key takeaways
- Supabase lists 4 GB of RAM, 2 CPU cores and 40 GB of SSD as the minimum for all components, and recommends 8 GB or more with 4 cores or more.
- Managed backups, point-in-time recovery, branching and the Management API are missing from the self-hosted version.
- One install serves one project. A staging copy needs a second install.
- A 4 GB Lightsail server lists at $24 a month, and your team's time sits on top of that figure.
- Stay on the platform unless a rule about data location or isolation, or a team that already runs servers, gives you a reason to move.
What does self-hosting Supabase mean?
You run a set of containers with Docker Compose on a machine you control. Supabase's self-hosting overview calls Docker the fastest and recommended route, and lists a Kubernetes option that the community maintains.
The default stack holds the services your app already talks to:
- Postgres, with Supavisor pooling connections
- Auth for sign-ups and logins
- PostgREST for the REST API
- Realtime for database change messages
- Storage for files, with imgproxy for image processing
- Edge Runtime for functions
- Studio, the dashboard, behind an API gateway
Local development is a different thing. The Supabase CLI starts a stack on your laptop for testing, and Supabase warns that you must not expose it to external traffic. Do not point customers at it.
What do you lose compared with the hosted platform?
You lose the features Supabase runs around the database. The overview names these as unavailable when you self-host: branching, advanced metrics beyond logs, managed backups and point-in-time recovery, analytics and vector buckets, ETL, and the Management API.
The dashboard changes too. Studio manages a single project with no organizations, and you set most options through environment variables in a file. Support moves to GitHub, Discord and Reddit, because the self-hosted version is community supported.
| Job | Hosted platform (Pro) | Self-hosted |
|---|---|---|
| Server and operating system patches | Supabase | You |
| Daily database backups | Included, kept 7 days | You script, store and test them |
| Point-in-time recovery | Paid add-on from $100 a month | Not offered by Supabase |
| Upgrades | Supabase manages the stack | You run the update script and handle conflicts |
| Uptime of the stack | Supabase runs it | You design failover and watch it |
| Projects | Several under one organization | One per install |
| Help | Email support | Community channels |
What does self-hosting Supabase cost?
Your monthly cost is the server, plus off-site storage for backups, plus the hours your team spends, plus an email service for login messages. You can read the first one off a price page. The others you have to estimate.
Server sizes and list prices
Supabase's Docker guide gives the minimum as 4 GB RAM, 2 cores and 40 GB of SSD, and the recommendation as 8 GB or more, 4 cores or more and 80 GB or more. It calls the minimum suitable for development and small to medium production loads. You can remove services you do not use, such as Realtime or Edge Runtime, to cut the load.
To put numbers on that, here are Linux general purpose bundles with a public IPv4 address from the Amazon Lightsail pricing page:
| Bundle | CPU and disk | List price a month | Against Supabase's guidance |
|---|---|---|---|
| 4 GB memory | 2 vCPUs, 80 GB SSD | $24 | Meets the minimum |
| 8 GB memory | 2 vCPUs, 160 GB SSD | $44 | Meets recommended memory, below recommended cores |
| 16 GB memory | 4 vCPUs, 320 GB SSD | $84 | Meets the recommendation |
A vCPU on a cloud bundle and a physical core are different units, so load test before you trust a size.
The platform bill for comparison
The Supabase pricing page lists Pro at $25 a month with $10 of compute credit, which covers one Micro instance with 1 GB of RAM. A Medium instance with 4 GB lists at $60, so one Pro project on Medium comes to $75 a month before usage above the quotas. A Large instance with 8 GB lists at $110, which makes $125. Our guide to Supabase pricing walks through compute, egress and the spend cap.
On server price alone, the self-hosted box looks cheaper. Add the labour before you decide. As an example with made-up inputs, 3 hours a month of upkeep at $50 an hour adds $150, which is more than the gap in either row. Put your own hours and rate into the formula. Many apps also run well on Micro, and then the platform costs $25.
How do you install it?
On a supported Linux server, Supabase offers a setup script that installs Docker if needed, fetches the configuration, generates secrets and keys, and asks for your URLs. The Docker guide puts a first start at under 15 minutes. The script arrives through a shortened link that you pipe into a shell, so open it and read it before you run it.
After setup you start the stack from the project folder:
sh run.sh start
docker compose ps
sh run.sh logs storage
A first start is the short part. Finish this list before real users arrive:
- Replace every example password and key. The guide says to never start with the defaults.
- Put a reverse proxy such as Caddy or Nginx in front of the API gateway for HTTPS. The default setup serves plain HTTP on port 8000.
- Keep Studio and Postgres off the public internet. Studio uses HTTP basic authentication.
- Connect a production SMTP server so sign-up and password mail arrives.
- Decide where files live. Storage writes to the server's disk by default, and you can switch it to an S3 compatible service.
- Turn on logs if you want them. The default setup leaves logs and analytics out to save memory.
Row level security still protects your data in the same way it does on the platform, and a self-hosted install does not write policies for you.
Who handles backups and upgrades?
You do. Supabase publishes tested snapshots of the Docker setup about once a month, and its update guide describes a script that merges a newer release over your files, keeps your secrets and stops to flag breaking changes. The script backs up configuration files. It does not back up Postgres or your stored files.
Preview each update, then apply it in a quiet window:
sh update.sh --dry-run
sh update.sh
sh run.sh pull
sh run.sh recreate
If you edited a line that a release also changed, the script writes merge markers and stops, and a person has to resolve them. Major database versions bring a separate job: Supabase ships a script that moves an existing install from Postgres 15 to 17 and asks you to make your own backup first.
For backups, schedule database dumps, copy them to storage in another account or region, copy uploaded files on the same schedule, and keep a copy of your .env file and encryption keys in a secrets manager. Restore into a spare machine on a calendar date. Our database backup guide for startups covers recovery targets and restore drills.
Daily dumps also set your worst case. If the disk fails at 11 pm and the last dump ran at midnight, you lose 23 hours of writes. Tighter targets need continuous log archiving that you set up and watch.
When should a startup self-host?
Self-host when a requirement forces it or when running servers is a skill your team already has. Supabase itself names good fits, among them a need for full control over data and compliance rules that bar managed services.
| Your situation | Pick | Reason |
|---|---|---|
| A customer contract requires data inside their network | Self-host | You need control of the machine |
| The app must run with no outside connection | Self-host | The platform cannot reach it |
| No one on the team has restored a Postgres backup | Platform | Learn restores before you own the only copy |
| You want a lower bill and the app fits Micro or Small compute | Platform | In the example above, labour outweighs the saving |
| You run several large projects and employ people who operate databases | Price both | The gap in compute may pay for their hours |
Name an owner before you move. That person receives the alerts, applies the monthly release, rehearses restores and knows where the keys are. If you cannot name them, stay on the platform. Our observability guide lists the signals that owner should watch.
How do you move a platform project over?
You dump roles, schema and data with the Supabase CLI and load the three files into your new Postgres with psql in one transaction:
supabase db dump --remote="[CONNECTION_STRING]" -f roles.sql --role-only
supabase db dump --remote="[CONNECTION_STRING]" -f schema.sql
supabase db dump --remote="[CONNECTION_STRING]" -f data.sql --use-copy --data-only
Enable the same extensions on the new instance first. Supabase's restore guide leaves out stored files and Edge Functions, so plan those two moves on their own. Your app also needs the new URL and keys, and login providers need new callback addresses.
Rehearse the move with a copy. Time it, compare row counts, sign in as a test user, upload a file and call each function. Keep the platform project running until the new one has passed those checks.
Frequently asked questions
Is self-hosted Supabase free?
Supabase charges no plan fee for the self-hosted stack. You pay for the servers, storage, email delivery and network use, and your team spends the hours that Supabase would spend on the platform.
Can one self-hosted install run several projects?
No. Supabase states that a self-hosted install runs as a single project. Run a separate install for each product or environment, and budget a server for each.
Does self-hosted Supabase send data back to Supabase?
Supabase says the self-hosted version collects no telemetry. The command line tool is a separate program that collects usage data, and its documentation explains how to opt out.
Can you run it on a 1 GB server?
Not with all components. Supabase lists 4 GB of RAM as the minimum. Removing services you do not use lowers the need, and you should test the trimmed stack under load before launch.
Summary
If you self-host, your team takes on the operating jobs and gains control of the machine. The server line on the bill can shrink while the hours grow. Price the hours, test a restore and name an owner before you move. If you want engineers to size the setup, plan the migration or build the backend around it, see our backend and API development service.
Topic: Backend, data & architecture