Supabase self-hosted: the server it needs and what it costs
Published
Self-hosted Supabase runs with Docker Compose on one Linux server, and its documentation asks for at least 2 CPU cores, 4 GB of memory and 40 GB of SSD, with 4 cores, 8 GB and 80 GB recommended. On our price list the recommended size is a VPS at $23.48 a month; the same 8 GB on Supabase Cloud is a Pro project on Large compute at $125 a month, which also buys managed backups and support you would otherwise run yourself.
The Supabase facts below come from its self-hosting documentation, its Docker Compose file on GitHub and its pricing page as we read them on 22 November 2026. Our prices are from our price list on the same day, per month and without tax.
What self-hosted Supabase includes, and what it leaves out
The Docker setup starts the same pieces a hosted project uses: Postgres, the Studio dashboard, Auth, the PostgREST API, Realtime, Storage with imgproxy, Edge Functions, postgres-meta and the Supavisor connection pooler, all behind one API gateway. Logs and analytics are not switched on by default, and turning them on adds Logflare and Vector and uses more memory.
Supabase lists what is missing when you host it yourself. One install is one project, and Studio does not manage several projects or organisations. Branching, metrics beyond logs, managed backups and point-in-time recovery, analytics and vector buckets, ETL and the Management API are platform features only. Support comes from the community, and server upkeep, security, Postgres maintenance, backups and uptime are yours. In return, self-hosted Supabase sends no telemetry.
Which server size, and what it costs
Supabase gives two sizes, both described as fit for development and small to medium production use. Our VPS are priced per resource, so you can take exactly these sizes:
| Use | Server | Per month |
|---|---|---|
| Supabase minimum, for testing | VPS, 2 vCPU, 4 GB, 40 GB NVMe | $11.74 |
| Supabase recommended | VPS, 4 vCPU, 8 GB, 80 GB NVMe | $23.48 |
| A larger database, logs switched on | VPS, 8 vCPU, 16 GB, 160 GB NVMe | $46.96 |
| Cores nobody else uses | Dedicated Ryzen 7 6800H, 16 threads, 32 GB, 256 GB NVMe | $79 |
The first two rows are Supabase's own figures. The last two are our suggestion: Postgres likes memory for its cache, and the database, uploaded files and Docker images all share one disk. The vCPU on our VPS are shared with other virtual machines. If the database is busy all day, a dedicated server gives you 8 cores and 16 threads of your own. If you do not need Realtime, Storage, imgproxy or Edge Functions, Supabase says you can remove them from the Compose file to need less.
Self-hosted or Supabase Cloud?
On Supabase Cloud the Free plan costs nothing, with a 500 MB database, two active projects and a pause after a week without activity. Pro starts at $25 a month and includes $10 of compute credit, which covers the smallest instance. Bigger instances are billed on top, so the monthly cost of one Pro project depends mostly on its memory:
| Memory | Supabase Cloud, Pro plan | Self-hosted here |
|---|---|---|
| 4 GB | Medium, shared CPU: $75 | VPS 2 vCPU: $11.74 |
| 8 GB | Large, 2 dedicated vCPU: $125 | VPS 4 vCPU: $23.48 |
| 16 GB | XL, 4 dedicated vCPU: $225 | VPS 8 vCPU: $46.96 |
| 32 GB | 2XL, 8 dedicated vCPU: $425 | Dedicated Ryzen 7 6800H: $79 |
The comparison is not like for like, and it is fair to say where Supabase wins. Its Large and bigger instances have dedicated vCPU, while our VPS share theirs. Its Pro price includes 8 GB of database disk, 250 GB of traffic, 100 GB of file storage, backups kept for 7 days and several projects in one dashboard, and Supabase runs Postgres for you. For a small project the Free plan or Pro on the base instance is cheaper than any server once you count your own time. Self-hosting pays off when a project needs a lot of memory or disk, when data has to stay on a server you control, or when you would rather spend money on hardware than on per-instance fees.
Installing it
You need Git and Docker Engine with the Compose plugin. Supabase has an install script for Debian, Ubuntu and RHEL-family Linux, so Ubuntu 24.04, Debian 12, Rocky Linux 9 and AlmaLinux 9 all work. The manual route pins a release, which is easier to update later:
git clone --depth 1 --branch self-hosted/v0.8.4 https://github.com/supabase/supabase
mkdir supabase-project
cp -rf supabase/docker/. supabase-project
cd supabase-project && cp .env.example .env
docker compose pull
sh utils/generate-keys.sh
sh utils/add-new-auth-keys.sh
# set DASHBOARD_PASSWORD in .env, then:
sh run.sh start
Supabase is clear that you must never start it with the example passwords and keys in .env.example. The generate-keys script writes random ones; then set DASHBOARD_PASSWORD yourself, because Studio is protected only by HTTP basic authentication on the gateway. The dashboard password must contain at least one letter and no special characters. Check the latest self-hosted release on GitHub before you clone; v0.8.4 is the tag the guide used on the day we read it.
The ports Docker opens past your firewall
We deliver every server with the firewall on and only SSH allowed in. Supabase's Compose file publishes three ports: 8000 for the API gateway and Studio, and 5432 and 6543 for Postgres through Supavisor. Docker's own documentation says Docker and ufw are incompatible: traffic to a published container port is diverted before it reaches the ufw rules. So right after the install your database pooler can answer from the internet even though ufw says only SSH is open.
The simplest fix is to publish those ports on the loopback address only. In docker-compose.yml, change the port lines to start with 127.0.0.1, for example 127.0.0.1:5432:5432, then recreate the containers. Postgres is then reachable from the server itself or through an SSH tunnel, and the gateway only from a reverse proxy on the same machine. Check from another computer that 5432, 6543 and 8000 no longer answer.
For HTTPS, Supabase recommends a reverse proxy such as Caddy or Nginx in front of the gateway, which is needed anyway once you use OAuth sign-in. Open 80 and 443 in the firewall for the proxy, and set SUPABASE_PUBLIC_URL, API_EXTERNAL_URL and SITE_URL in .env to your https address.
Email, backups and updates
Auth sends sign-up and password emails, and Supabase asks for a production SMTP server in .env, suggesting AWS SES. Without one, emails to your users will not arrive reliably.
Backups are entirely yours. Every one of our servers has one NVMe drive and no RAID, so a dump that stays on the same machine is lost with the drive. Schedule pg_dump and copy the files, and the Storage volume, to another machine or to S3-compatible storage from the first day. Supabase's reset script deletes the database and storage volumes, so keep it away from production.
Supabase publishes stable snapshots of the Docker setup about once a month and provides update.sh to merge your changes with a new release. It warns that changing the tag of a single service is not guaranteed to work, so update the whole stack together and take a backup first.
Questions
What are the system requirements for self-hosted Supabase?
Supabase's Docker guide asks for at least 2 CPU cores, 4 GB of memory and 40 GB of SSD, and recommends 4 cores, 8 GB and 80 GB or more. A VPS of the recommended size costs $23.48 a month on our price list.
Is self-hosted Supabase free?
The software is free and sends no telemetry. You pay for the server, and you take on backups, security, updates and uptime yourself. Branching, managed backups, point-in-time recovery and more than one project per install are available only on Supabase Cloud.
Which ports does self-hosted Supabase use?
The Compose file publishes 8000 for the API gateway and Studio, and 5432 and 6543 for Postgres through Supavisor. Ports published by Docker bypass ufw, so bind them to 127.0.0.1 and put a reverse proxy on 80 and 443 in front of the gateway.
Sources, read on 22 November 2026: Supabase self-hosting, Self-hosting with Docker, Supabase Docker files on GitHub, Supabase pricing, Docker and ufw, Docker port publishing.
Written and checked by the VPS Provider team.