Self-Hosting Supabase: Effort, Costs, Maintenance
· Updated

Self-Hosting Supabase: Effort, Costs, Maintenance

13 min read

Supabase is open source, and the Compose file for self-hosting is available in the repository. A server with 8 GB of RAM costs around €36 a month at Hetzner in Nuremberg. So the idea is tempting: run it yourself, keep the data on your own server, and never get a bill in dollars.

The installation really can be done in an afternoon. What comes after isn't in any quick-start guide: updates every few weeks, backups you have to build yourself, and a firewall that doesn't behave the way you'd expect. Here you'll get the structure of the stack, the gaps compared with the cloud, and a 12-month cost calculation. Prices and versions are current as of November 2026, and we disclose the assumptions behind the calculation.

What "Self-Hosting Supabase" Means Technically

Supabase isn't a single program. It's a Postgres database with a series of services in front of it. The official route for self-hosting is Docker Compose. There is also a Kubernetes project, which the community maintains rather than Supabase itself (self-hosting overview).

« swipe »
All services share a single Postgres database. There are two ways in from outside: through the gateway and through the pooler. Source: docker/docker-compose.yml in the supabase/supabase repository, release 0.8.5 of 23 Nov 2026.

Three things changed in 2026, so many guides online are now out of date:

  • Envoy instead of Kong. Since release 0.8.0 in August 2026, Envoy has been the default gateway. Kong is still available as an override, an extra Compose file. Supabase plans to remove it in a later release.
  • Logs are optional. Since release 0.5.0, Logflare and Vector are no longer part of the default setup. Without them, Studio has no log view.
  • Postgres 17 is the default. The override for Postgres 15 is also due to be removed. If you're still on 15, it's best to plan the migration now.

All three points are listed in the changelog of the Docker setup.

For hardware, Supabase specifies at least 4 GB of RAM, 2 CPU cores, and 40 GB of SSD. The recommendation is 8 GB of RAM, 4 cores, and 80 GB of SSD or more (installation guide). You may remove services you don't need from the Compose file, such as Realtime or the Edge Runtime.

What Supabase Lacks When Self-Hosted

The code is the same, but the platform around it is missing. Supabase itself lists what is only available in the cloud: branching, managed backups with point-in-time recovery, advanced metrics, analytics and vector buckets, ETL, and the Management API.

Topic Supabase Cloud Self-hosted
Projects Multiple projects and organizations in one dashboard One project per installation. For staging you need a second stack
Branching Preview database per branch at $0.01344 per hour Not available
Backups Daily, 7 days on the Pro plan, 14 days on the Team plan You build them yourself
Point-in-time recovery Add-on from $100 a month, worst-case data loss of two minutes Only with your own WAL archiving
Logs In the dashboard, 7 days on the Pro plan, 28 days on the Team plan Optional override with Logflare and Vector
Studio login Personal accounts, SSO on the Team plan One shared password via HTTP Basic Auth
Rotating keys In the dashboard Via script in the .env, then recreate the containers
Support Email support from the Pro plan Community via GitHub and Discord

The information comes from the self-hosting overview, the pricing page, and the backup documentation.

Then there's the list of responsibilities that Supabase itself names. When self-hosting, you are responsible for the server, hardening, updates, database maintenance, high availability, backups, recovery, and monitoring.

Installing Supabase: An Afternoon's Work

The Official Route with Docker Compose

  1. Set up

    A setup script installs Docker, generates secrets and keys, asks for the addresses, and pulls the images. Alternatively, you can clone the release by hand.

  2. Check secrets

    Never start with the example values from .env.example. The database password, JWT secret, API keys, and the dashboard password all need their own values.

  3. Put HTTPS in front

    For production use, Supabase requires HTTPS. There are overrides for Caddy and nginx with certificates from Let's Encrypt.

  4. Close ports

    The default file publishes the gateway and pooler on the server. The Caddy override removes the gateway port, but the two pooler ports stay open. Anything nobody needs from outside, you bind to 127.0.0.1 or remove.

  5. Build backup and monitoring

    The stack includes neither. The sections further down show what belongs here.

Supabase with Coolify

Coolify is an open-source interface for your own servers and comes with a template for Supabase. It takes three steps off your plate: the secrets are generated, Coolify's proxy provides HTTPS, and the template itself doesn't publish any ports on the server. Logs and S3-compatible storage are already included.

You should know about three limitations:

  • The template lags behind the original. When retrieved on 25 Nov 2026, it roughly corresponded to release 0.8.4. Release 0.8.5, two days old and containing security fixes, was still missing.
  • Existing installations stay put. According to the Coolify docs, they keep their images until you change them in the Compose file. Supabase's update script works on the directory of the official setup and doesn't help here. You reconcile versions and configuration by hand.
  • Database access from outside means manual work. If you want to reach Postgres from outside, you extend the Compose file and open the firewall. This can easily lead to the problem described in the next section.

Security: Docker Opens Ports Past the UFW Firewall

The default Compose file publishes three ports without binding them to an address: 8000 for the gateway, and 5432 and 6543 for the pooler. This makes Docker open them on all of the server's addresses. On Ubuntu, many people rely on UFW. The Docker documentation calls the two "incompatible with each other": traffic to published ports is redirected before it reaches the UFW rules (Docker: Packet filtering and firewalls).

« swipe »
Docker redirects published ports before UFW ever sees them. Your own rules only take effect in the DOCKER-USER chain. Simplified from the Docker documentation on packet filtering and firewalls.

From our operations: open, even though the firewall said "closed"

We run Supabase on our own servers for several client projects, including industrial and SaaS products, and we also run projects on Supabase Cloud. We manage our servers with Coolify at Hetzner in Germany. On one self-hosted stack, the database pooler on ports 5432 and 6543 and the API gateway, still Kong at the time, were reachable from outside, even though UFW reported everything as closed. Only scanners noticed. We closed them with rules in the DOCKER-USER chain. Three more rules apply to every stack we run: Studio only runs behind additional protection, we rotate secrets on a schedule, and the Secret Key (formerly service_role) never goes into the frontend. You can find what we offer around Supabase on the page Supabase at Medienstürmer.

There are three ways to really close the ports:

  1. Don't publish them. Remove the port lines or bind them to 127.0.0.1. The reverse proxy reaches the gateway through the Docker network.
  2. Rules in DOCKER-USER. Your own rules take effect there before Docker's. Because the destination has already been rewritten, the Docker docs say you have to match the original port using the conntrack extension (Docker with iptables).
  3. Your hosting provider's firewall. It filters before traffic reaches the server and is a good second safety net.

Always check the result from the outside, for example with a port scan from another machine. The output of ufw status tells you nothing about Docker ports.

Securing Studio, API Keys and the Secret Key

Studio. In a self-hosted setup, the dashboard is protected only by HTTP Basic Auth, meaning one username and one password for everyone. It runs through the same gateway as the API and is therefore reachable at the same address. Put a second layer of protection in front of it: a VPN, an allowlist of individual IP addresses, or an upstream login.

Keys. A current stack has two systems. The old one consists of the shared JWT_SECRET and the keys ANON_KEY and SERVICE_ROLE_KEY. The new one brings API keys with the prefixes sb_publishable_ and sb_secret_. It also includes an asymmetric key pair (ES256) that signs user sessions. Supabase ships scripts for creating and rotating them (documentation on auth keys). Rotating the API keys leaves sessions intact. A new key pair signs out all users whose session was signed with the old one.

Plan the switch to the new keys. According to the docs, Supabase is "deprecating the anon and service_role keys in early 2027". In the Docker setup, both systems run side by side. If the new variables are empty, the stack works with the old keys only.

Secret Key and service_role. Both bypass Row Level Security completely. Supabase writes: "Never put one in a browser, a shipped application, or source control" (API keys documentation). Only the Publishable Key belongs in the frontend.

Supabase Updates: A Decision Every Two to Three Weeks

In its guide, Supabase speaks of stable versions "approximately once a month". The changelog shows a denser cadence over the last six months.

« swipe »
Eleven releases in just under six months, on average one every two and a half weeks. Source: docker/CHANGELOG.md and docker/upgrades.json in the supabase/supabase repository, retrieved 25 Nov 2026.

Supabase ships a script for updates. update.sh fetches the new configuration and merges it with your changes. Your .env is preserved, new variables are appended, and the old configuration is stored as an archive in the backups/ folder. When there are breaking changes, the script stops and asks. When there are conflicts, it puts markers in the file and aborts until you have resolved them (update guide).

The script doesn't take two things off your plate:

  • The data. update.sh only backs up configuration files. You back up the database and files yourself beforehand.
  • The decision. Every release needs someone who reads the changelog, tries the update on a second stack, and sets a date for the restart.
Rule of thumb

Every update is preceded by a fresh database backup. Two of the last four releases brought migrations that can't simply be rolled back.

Self-Hosted Backups: What You Have to Build Yourself

In the cloud, daily backups are included in the plan, and point-in-time recovery is a switch. When self-hosting, a usable backup consists of four parts:

Part What is backed up Note
Database Scheduled dump, stored off the server Coolify schedules Postgres backups via cron and uploads them to S3-compatible storage
Files The volumes/storage folder or the S3 bucket Database backups contain only the files' metadata. This also applies in the cloud
Configuration The .env and the Compose files Without the keys from the .env, a restored database no longer matches issued tokens and API keys
Server Provider backups as an additional layer At Hetzner, 20 percent of the server price for seven daily snapshots; attached volumes are not included

With a daily dump, in the worst case you lose a day's work. Anyone who can afford to lose less needs continuous WAL archiving. The cloud uses WAL-G for this and backs up every two minutes. When self-hosting, you set it up and monitor it yourself.

Only a restore shows whether a backup is any good. The Coolify docs recommend restoring a copy into a throwaway database and checking whether the application can read it (Coolify: Backups). Time the process while you do it, because that is how long your product will be down in an emergency.

Costs: Supabase Cloud vs. Self-Hosting Over 12 Months

First, the list prices, all as of November 2026.

$25

is the monthly price of the Pro plan, including $10 in compute credit for a Micro instance

supabase.com/pricing
$599

is the monthly price of the Team plan

supabase.com/pricing
€35.99

is the monthly price of a Hetzner CPX32 with 4 vCPU, 8 GB RAM and 160 GB NVMe, net, in the Nuremberg location

hetzner.com/cloud
Item Price Source
Compute Micro, Large $10 and $110 per project per month Supabase pricing page
Point-in-time recovery, 7 days $100 per project per month Supabase pricing page
Database storage 8 GB included per project, then $0.125 per GB Supabase pricing page
Hetzner CPX22, CPX32 €19.99 and €35.99 per month, Nuremberg location Hetzner Cloud
Hetzner CCX23, CCX33 €86.49 and €138.99 per month, dedicated vCPU, Nuremberg location Hetzner Cloud
Hetzner Backups 20 percent of the server price Hetzner docs
Hetzner Object Storage €6.49 per month including 1 TB Hetzner Object Storage

On its pricing page, Hetzner lists the cheapest location, currently Helsinki. We calculate with Nuremberg because the servers should be located in Germany. There they cost around 18 percent more.

In the cloud, you pay for the plan once per organization. However, each project gets its own instance, which is billed separately. When self-hosting, you pay for the server and your time.

The Assumptions Behind the Calculation

  • Exchange rate: €1 = $1.0963, ECB reference rate from 24 Nov 2026.
  • Hourly rate: €100 for a person who is fully comfortable with Linux, Docker and Postgres. Plug in your own value here.
  • Working time: The hours in the table are our estimate based on our own operations, not measured values. They include setup, updates, operating system maintenance, backup checks and a restore test.
  • Cloud without operating hours: Even the cloud isn't entirely free of effort. However, updates, backups and monitoring of the platform are no longer your concern.
  • Point-in-time recovery: Scenarios 2 and 3 include PITR in the cloud. The self-hosting hours cover daily backups, but no WAL archiving. Without PITR, the cloud costs around €1,535 and €6,470 a year. In that case the server alone already costs more than the cloud in the second scenario, and the third leaves 24 hours instead of 79.
  • Not included: Application development, traffic beyond the free allowances, on-call duty outside working hours and VAT.
Scenario Supabase Cloud Self-hosting at Hetzner Working time in the first year
1 project, small load Pro plan with one Micro instance CPX32 with backups, Object Storage 12 hours of setup, 3 hours per month
1 product with staging Pro plan, Large with PITR and 50 GB database, Micro for staging CCX23 with backups, CPX22 for staging, Object Storage 24 hours of setup, 4 hours per month
5 production projects Pro plan, five times Large with PITR and 50 GB database each Two CCX33 with backups, Object Storage 40 hours of setup, 8 hours per month
« swipe »
In all three cases, working time is the largest item. Calculation based on our own assumptions, prices from supabase.com/pricing and hetzner.com/cloud (Nuremberg location), as of November 2026.

The servers are the smaller item in every scenario. In the first case, the server alone still costs more than the cloud: €596 against €274 a year. In the third case, the servers cost around a third of the cloud bill. There, self-hosting only becomes more expensive once you count the hours.

How much working time self-hosting can cost

79 hours

In the largest scenario, self-hosting saves around €7,860 in platform costs per year. At €100 per hour, that equals 79 hours for setup and operations combined. If you stay below that, you save money. If you go above it, you lose money.

  • 1 project, small load: The server alone costs more than the cloud
  • 1 product with staging: 11 hours per year
  • 5 production projects: 79 hours per year

You can fill in the formula behind this with your own numbers: annual cloud costs minus annual server costs, divided by the hourly rate. The result is the maximum number of hours that setup and operations may cost.

When Supabase Cloud Is Cheaper

With one or two projects, the cloud clearly wins in our calculation. This is especially true if nobody in-house runs servers. In that case, learning time comes on top of the hours, along with the risk that the one person who knows the setup is on vacation. Anyone who needs branching or point-in-time recovery without any effort of their own is also better off in the cloud.

When Self-Hosting Is the Better Choice

  • The operations setup already exists. If you already run servers with monitoring, a backup process and on-call duty, each additional stack takes less time. With 20 hours of setup and 4 hours per month, the third scenario costs around €10,880 and thus comes in below the cloud.
  • The instances are large. A 4XL instance with 16 vCPU and 64 GB RAM costs $960 per month. A Hetzner CCX43 with the same specs costs €276.49 in Nuremberg, or around €332 with backups. That leaves about €540 per month for operations.
  • The Team plan would be necessary. It starts at $599 per month, which converts to around €6,560 per year without instances. However, you don't get a SOC 2 report, which the Team plan includes, through self-hosting either.
  • The data location is mandated. If a contract or an internal policy requires that the data never leaves your network, price isn't the deciding factor. What matters legally here is covered in the article Running Supabase in a GDPR-Compliant Way.

Decision: Supabase Cloud, Self-Hosting or Managed Hosting

Option 1

Supabase Cloud

Strength: Updates, backups, branching and support come from the vendor.

Limitation: Contracting party in Singapore with a US group company, billing in dollars, and every project costs its own instance.

Fits when one or two projects are running and nobody in-house operates servers.

Option 2

Self-Hosting

Strength: You decide the data location, the network and the timing of updates. According to Supabase, the stack sends no telemetry.

Limitation: Operations, security hardening and recovery are your responsibility. Support is available only through the community.

Fits when a team with experience in Linux, Docker and Postgres is in place and cover for absences is arranged.

Option 3

Managed Hosting

Strength: Your own server in the location you want, with a service provider handling operations.

Limitation: Ongoing operating costs, and the cloud's features are missing here too.

Fits when the data location is fixed, but nobody in-house should have to restore a database in the middle of the night.

If the platform itself is still undecided, the comparison Supabase or Firebase can help. The question that comes before that, whether you should build it yourselves at all, is covered in the article Having an App Developed.

Checklist for Running Supabase on Your Own Server

If any of these items is missing, the stack isn't ready for real user data yet.

  • A port scan from the outside shows only ports 80 and 443 and, if intended, SSH access.
  • Gateway and pooler are bound to 127.0.0.1 or blocked via DOCKER-USER.
  • Studio is reachable only via VPN, IP allowlist or an upstream login.
  • No example value remains in the .env, and the file is additionally stored in a vault.
  • Secret key and service_role appear in no frontend and no repository.
  • Database, files and .env are backed up daily outside the server.
  • The restore has been fully rehearsed once, with the time measured.
  • One person follows the changelog and decides on the update for each release.
  • Updates run on a second stack first.
  • Monitoring reports outages, full disks and failed backups.
  • It is defined who responds outside working hours.

Frequently Asked Questions

Can you self-host Supabase for free?

Yes. The Docker setup is licensed under Apache 2.0, so there are no license fees. You pay for the server and for the time spent on setup, updates and backups. In our calculation, working time makes up the largest share of the costs.

What server requirements does Supabase have when self-hosted?

Supabase lists 4 GB of RAM, 2 CPU cores and 40 GB of SSD as the minimum. It recommends 8 GB of RAM, 4 cores and 80 GB of SSD or more. With logs and analytics, the requirements go up. You can remove services you don't use from the Compose file.

Does Supabase work with Coolify?

Yes. Coolify includes a template that generates secrets and provides HTTPS through its own proxy. The template lags slightly behind the original. You update existing installations by hand in the Compose file, because Supabase's update script doesn't work there.

Which features are missing from self-hosted Supabase?

According to Supabase, branching, managed backups with point-in-time recovery, advanced metrics, Analytics and Vector buckets, ETL and the Management API are missing. There is also this: one installation is one project. When self-hosted, Studio has no concept of organizations or personal accounts.

How do you update a self-hosted Supabase?

Back up the database and files first. Then sh update.sh --dry-run shows the changes, and sh update.sh merges them with your configuration. After that, you pull the images and recreate the containers. If there are breaking changes, the script stops and lists the steps you need to take.

Running Supabase yourself is technically very doable. It rarely saves money, though. With one or two projects, the cloud is much cheaper once you count your working time honestly. Self-hosting pays off when the data location is prescribed, or when an operations team already exists and runs many projects or large instances. Without existing operations, the cloud is cheaper in our calculation even with five projects. If you decide to go this way, plan for four things from the start: closed ports, tested backups, a fixed update rhythm and a person who has time for it.

Supabase Check: 30 Minutes, a Clear Recommendation

We look at your project size, data protection requirements and your team with you. Afterwards, you'll know whether Supabase Cloud, your own server or a managed setup fits you best, what costs to expect over 12 months and where an existing stack has gaps. The conversation is free, even if it doesn't lead to a project with us.

Joseph PaulEntwicklung
Joseph Paul

Sources

  1. Supabase: Self-Hosting, overview of missing features and responsibilities, and Self-Hosting with Docker, requirements and setup. Accessed on 25 Nov 2026.
  2. Supabase on GitHub: docker-compose.yml, CHANGELOG.md and upgrades.json of the Docker setup, release 0.8.5 of 23 Nov 2026. Accessed on 25 Nov 2026.
  3. Supabase: Update Your Self-Hosted Deployment and Self-hosted auth keys. Accessed on 25 Nov 2026.
  4. Supabase: Pricing, Compute and Disk and Compute credits. As of November 2026, accessed on 25 Nov 2026.
  5. Supabase: Database Backups, retention by plan and point-in-time recovery. Accessed on 25 Nov 2026.
  6. Supabase: Understanding API keys. Accessed on 25 Nov 2026.
  7. Docker: Packet filtering and firewalls, section on Docker and ufw, and Docker with iptables, DOCKER-USER chain. Accessed on 25 Nov 2026.
  8. Coolify: Supabase and Database Backups in the documentation, plus the template on GitHub, as of 19 Nov 2026. Accessed on 25 Nov 2026.
  9. Hetzner: prices for Regular Performance, General Purpose and Object Storage, plus billing of backups. Net prices for the Nuremberg location, as of November 2026, accessed on 25 Nov 2026.
  10. European Central Bank: Euro reference rate for the US dollar of 24 Nov 2026, €1 = $1.0963.