How to self-host Supabase in production (2026 guide)
How to self-host Supabase on a VPS: what runs, sizing, email, backups, upgrades, what breaks, and how the managed route on Aria Cloud saves the work.
Yes, you can self-host Supabase. Run the official Docker Compose setup on a server with at least 4 GB of RAM (8 GB or more recommended), then look after secrets, HTTPS, email, backups and upgrades yourself. The software has no licence fee. The work is the production side, which Supabase’s own Docker guide mostly leaves to you. This guide shows what you are running, what the setup involves, what breaks after the first start, and which route suits which situation.
We build Aria Cloud, which runs Supabase for you, so we have a commercial interest in this answer, and we recommend it. Supabase facts come from Supabase’s own documentation. Facts last checked 31 October 2026 against Supabase’s documentation.
What are you actually running?
Supabase is a set of services behind one gateway. The Docker guide describes an Envoy gateway (Kong is an optional override), Auth, PostgREST, Realtime, Storage, imgproxy, an Edge Runtime for functions, postgres-meta, Studio, Postgres and the Supavisor connection pooler. Logflare and Vector, which power the log explorer, are not in the default configuration and add resource needs when you enable them.
Many older tutorials describe Kong. If a guide tells you to configure Kong by default, it predates the current layout, so check its date.
How much server do you need?
Supabase lists a minimum of 4 GB RAM, 2 cores and 40 GB SSD, and recommends 8 GB or more, 4 or more cores and 80 GB or more. That is for Supabase alone. Your app and its builds come on top, so plan on 8 GB for anything real. The full arithmetic is in Supabase self-hosting requirements.
How do you set it up?
In outline, following the Docker guide:
- Get a server with Docker and Docker Compose.
- Fetch the official Docker files from the Supabase repository. The guide has the exact steps, and it publishes stable snapshots about once a month.
- Generate fresh secrets. Run
sh utils/generate-keys.sh, thensh utils/add-new-auth-keys.sh. SetDASHBOARD_PASSWORD, which protects Studio. Never run on the example values. - Start the stack with the run script the guide describes.
- Put HTTPS in front. Run a reverse proxy such as Caddy or Nginx on port 443 in front of the gateway on port 8000.
- Configure email, then close the ports you do not need.
Steps one to four are quick. Five and six are where most of the time goes. The production checklist goes through every item.
How do you send email?
Auth needs a real SMTP service for confirmation and password-reset emails. Set SMTP_ADMIN_EMAIL, SMTP_HOST, SMTP_PORT, SMTP_USER, SMTP_PASS and SMTP_SENDER_NAME in .env and restart the services. The guide recommends AWS SES. Test a magic link before launch. Use port 465 or 587.
What does the self-hosted setup leave to you?
Supabase lists what the managed platform has and the self-hosted setup does not: branching, managed backups and point-in-time recovery, advanced metrics beyond logs, analytics and vector buckets, and the Management API. Studio does not support multiple organisations or projects. Support is community-based, through GitHub Discussions, GitHub Issues, Discord and Reddit (self-hosting overview). The same page lists what you take on: provisioning, hardening, Postgres maintenance, high availability, backups, disaster recovery and monitoring.
How do you back up and restore?
The Docker guide does not cover backups, so this is the first thing to add. A minimal version:
docker compose exec -T db pg_dump -U postgres -Fc postgres > supabase-$(date +%F).dump
Run it from cron, copy the file off the server, and back up the Storage files too, since a dump does not contain them. Then restore into a scratch database and check it. The production checklist has the full list, including roles, which pg_dump leaves out.
How do you upgrade safely?
Supabase publishes stable snapshots of the Docker Compose setup about monthly. update.sh merges the latest configuration into your files with a three-way merge. Changing single image tags is risky: the guide says compatibility with mixed tags is not guaranteed. Rehearse every upgrade on a restored copy of your data before you touch production, and never run reset.sh, which deletes your data.
What tends to break after the stack starts?
- Data not persisting. Check where Postgres writes. A recreated container can start empty if the data directory is not on a persistent volume.
- Default or weak secrets. The example file is for trying things out.
- Exposed ports. Leaving the database or service ports reachable from the internet is a common mistake.
- No backups. Disks fail. Keep copies off the server.
- Auth email not arriving. Wrong or missing SMTP settings.
- Out of memory. Containers restart when the server is too small.
- Port clashes on a shared server. Two stacks or apps want the same port.
- Stale instructions. Tutorials that describe Kong or old image tags.
- Postgres version drift. The hosted platform may run Postgres 17 while the self-hosted image defaults to 15.
Do Edge Functions work?
Yes. Each function is a directory under volumes/functions/ with an index.ts, and the guide includes a sample you can call at /functions/v1/hello. Hosted functions are deployed across multiple regions, while a self-hosted instance resembles ordinary serverless, so behaviour is not identical. Test functions early (self-hosted functions).
Should you move a Supabase Cloud project to a server?
It takes more than a database dump: Storage files, Edge Functions, API keys and provider settings need their own steps. See what really moves when you leave Supabase Cloud, and the official restore guide.
Which route suits your situation?
| Your situation | Our recommendation | Why |
|---|---|---|
| Solo project, no time for operations | Aria Cloud | Aria does the operations. Supabase Cloud Pro starts at $25 a month and includes daily backups kept 7 days (pricing) |
| Small team without an operations person | Aria Cloud | Self-hosting yourself makes you the on-call team; the managed route does not |
| A team with operations skills that wants the data on its own server | Aria Cloud, or self-host | Your data sits on your own private server, with backups and upgrades handled |
| Data with a legal need to stay on a server you control | Aria Cloud | Supabase says self-hosting fits full-control and compliance needs, and Aria runs it for you |
| Several projects on one machine | Aria Cloud | Cloud charges per project, but Studio supports one project per install. One Aria server can run several apps |
The rule: self-host if you want the control, and let Aria do the work. A raw VPS costs your hours, so count them before you choose that route.
What is the managed route?
On Aria Cloud you add one database of type supabase to aria.yaml, and Aria installs the official self-hosted Supabase stack on your private server: Postgres, Auth, REST, Realtime, Storage, Studio and edge functions. It is included at no extra cost. Aria includes Supabase in its memory estimate and suggests the smallest plan that fits, which is Developer (£25 a month ex VAT) or larger. It generates the keys and database password, applies the migrations, functions and settings in your repository’s supabase/ folder on every deploy, and takes nightly encrypted backups that include Storage files and are stored off the server. See Supabase on Aria, self-hosted Supabase, managed for you, backups and pricing.
You work through aria.yaml, Aria AI and your coding agent. In the Mac app, Aria AI uses the subscription you already pay for, and in the browser it uses your API key. Compare the two in Aria versus Supabase Cloud.
FAQ
Can you self-host Supabase?
Yes. Supabase documents Docker Compose as the recommended way. You run the services and are responsible for backups, security and upgrades.
Does self-hosted Supabase cost anything?
The software has no licence fee. You still pay for the server and spend time on setup, backups and updates.
How much RAM does self-hosted Supabase need?
Supabase lists 4 GB as the minimum and recommends 8 GB or more, before your app. Aria’s Developer plan has 8 GB.
Do Edge Functions work when self-hosted?
Yes, as ordinary serverless functions in the Edge Runtime. They are not deployed across regions as they are on the hosted platform.
Who supports self-hosted Supabase?
The community. Supabase’s page lists GitHub Discussions, GitHub Issues, Discord and Reddit.
Can I move to Cloud or to a server later?
Yes, with effort. The database moves with a dump. Storage files, functions and settings need their own steps. Rehearse first.
Run Supabase without running the server. Read Supabase on Aria, see pricing, or get started.
Keep reading
How to run multiple apps on one VPS (and size it)
Docker, a reverse proxy and one HTTPS setup per app are the easy part. How to size memory, isolate builds, back up and know when to split servers.
Self-hosted Supabase in production: the checklist
What the official Supabase Docker guide leaves to you: secrets, HTTPS, email, backups, upgrades and monitoring. A checklist with the commands that matter.
Supabase self-hosting requirements: RAM, CPU and cost
Official minimum: 4 GB RAM, 2 cores, 40 GB disk. Recommended: 8 GB, 4 cores, 80 GB. What that means for a real server, and what it costs against Cloud.
Your own cloud. Without the DevOps.
One server that’s yours alone, set up and run by Aria, at one flat monthly price.