Supabase gives you a Postgres database, authentication, file storage, realtime subscriptions and auto-generated APIs in one package. It is a quick way to build a backend. On the hosted plans, though, the bill depends on usage: database size, egress, storage and monthly active users all count against quotas, and you pay for the overage once your app takes off.
Supabase is open source, so you can run the same stack on a server you own. The catch is the setup: a Docker Compose file with eight services, a set of signed JWT keys, a reverse proxy, SSL and a plan for backups and updates. SharkCluster does that part for you. You pick a server, click install, and manage the whole stack from the panel.
This guide walks through the full process: server requirements, the one-click install, attaching a domain with SSL, finding your keys, connecting your app, and running backups and updates.

Why self-host Supabase?
Hosted Supabase is the right choice for many teams. Self-hosting makes sense when one or more of these is true for you:
- Predictable cost. You pay for the VPS at a fixed monthly rate. No charges for monthly active users, egress, storage or database size on top.
- Data ownership. Postgres, auth users and uploaded files all stay on a server in the region and with the provider you choose: DigitalOcean, Contabo or OVHcloud.
- Data residency. If your customers or regulators need data kept in a specific country, you pick the datacenter.
- No project limits. Run staging and production, or one backend per client, without moving up a pricing tier.
The trade-off is that you own the server. SharkCluster handles installation, the reverse proxy, SSL, credentials, backups and updates from the panel, which removes most of the operational work, but you still choose when to resize the server and when to apply updates.
What gets installed
SharkCluster deploys Supabase as a containerised Docker Compose stack on your server. Each service runs in its own container:
| Service | What it does |
|---|---|
| Postgres | The database, with row-level security and the Supabase extensions. The newest published Supabase Postgres image is used at install time. |
| Auth (GoTrue) | Email/password, magic link and OAuth sign-in (Google, GitHub and more), with JWT sessions. |
| REST (PostgREST) | An automatic REST API generated from your database schema. |
| Realtime | Subscriptions to database changes over WebSockets. |
| Storage | File storage with access policies tied to your auth users. |
| Studio | The Supabase dashboard for tables, SQL, auth users and storage. |
| Meta | The Postgres metadata API that Studio uses. |
| Kong | The API gateway that routes /auth/v1, /rest/v1, /realtime/v1 and /storage/v1 to the right service and protects Studio with a login. |
Because the API is the standard Supabase API, the official client libraries work unchanged with React, Next.js, Vue, Nuxt, Svelte, Angular, Flutter and React Native.
Server requirements
Supabase runs several containers at once, so it needs more than a minimal VPS. The installer checks the server before it lets you start:
| Resource | Minimum |
|---|---|
| CPU | 2 vCPU |
| RAM | 4 GB |
| Disk | 20 GB |
| Docker Engine | Installed and managed automatically |
If the server is below any of these, the install button stays disabled and the onboarding screen shows which check failed. For production workloads, start with 4 vCPU and 8 GB RAM so Postgres has room for its cache, and resize later from the panel as traffic grows.
Step 1: Create or pick a server
If you don't have a server yet, create one from Servers → Create Server. Choose the provider, the region closest to your users and a plan that meets the requirements above. The creating a server guide explains each field.
You can also use an existing server, as long as it has enough free CPU, memory and disk for Supabase alongside whatever it already runs.
Step 2: Install Supabase in one click
Open the server and select Supabase in the server sidebar. The onboarding screen lists the included features, the services that will be deployed and the system requirements check.
![Supabase onboarding screen in SharkCluster showing Included Features, Deploys Automatically and the System requirements check with 'Specs Ready']](https://api.sharkcluster.com/uploads/blog/blog-1795587837953.jpg)
Optionally set the Host port. This is the port the platform listens on before you attach a domain. The default is 8000; pick another port only if something on the server already uses it.
Click install. The panel shows live progress through each stage:
- Generating Configuration (including fresh JWT, anon and service role keys)
- Pulling Docker Images
- Creating Volumes
- Creating Network
- Starting Containers
- Waiting for Health Checks
- Configuring Reverse Proxy
- Generating SSL
- Installation Complete

Most installs finish in a few minutes; pulling the images takes the longest on the first run. If a stage fails, the progress view shows the error and a retry button, so you don't have to start over from SSH.
Step 3: Attach a domain with SSL
When the install completes, the Supabase tab becomes a management dashboard. Go to Configuration → Domain & SSL. You have two options:
- Free sharkcluster.com subdomain. Click Generate subdomain to get an instant HTTPS address named after the server. No DNS records needed, and SSL is managed for you. Useful for staging or for getting started quickly.
- Your own domain. Add a custom domain such as
api.example.com, point an A record at the server's IP, and SharkCluster configures the reverse proxy and issues a Let's Encrypt certificate. If DNS hasn't propagated yet, the domain is attached over HTTP first and SSL is issued once DNS resolves.

Attaching a domain also updates the public URL inside the Supabase configuration, so auth redirects, storage links and the API base URL all use the new address.
Step 4: Find your keys and Studio login
Open the Credentials tab. You'll find:
- API URL — the base URL your app connects to.
- Anon Key (public) — safe to use in browser and mobile apps. What it can read and write is controlled by your row-level security policies.
- Service Role Key (secret) — bypasses row-level security. Use it only on your backend; never ship it in frontend code or commit it to Git.
- Studio credentials — the username and password that protect Studio. You can change them from this tab.
- Database connection details — host, port, database and user for direct Postgres connections from migration tools or a SQL client.

The keys are generated fresh for every install and stored by the panel, so you don't need to dig through a plaintext .env file on the server to find them.
Security tip: turn on row-level security for every table that the anon key can reach. Without a policy, a table exposed through the REST API is readable by anyone who has your anon key, and the anon key is public by design.
Step 5: Connect your app
Install the Supabase client and point it at your own instance instead of a supabase.co project:
npm install @supabase/supabase-jsimport { createClient } from '@supabase/supabase-js'
const supabase = createClient(
'https://api.example.com', // API URL from the Credentials tab
'YOUR_ANON_KEY' // Anon Key (public)
)
// Sign up a user
const { data, error } = await supabase.auth.signUp({
email: '[email protected]',
password: 'a-strong-password',
})
// Query a table (subject to row-level security)
const { data: todos } = await supabase.from('todos').select('*')The dashboard's Services → API Reference tab has ready-made snippets for your instance, and Studio (open it from the Overview tab) lets you create tables and policies visually.
Moving off hosted Supabase? Export your database from the old project with pg_dump, then use the import tool under Services → Database to restore it into your new instance. Point your app at the new URL and keys once the data checks out.
Day-to-day management from the panel
Everything you'd normally do over SSH has a place in the dashboard:
| Tab | What you can do |
|---|---|
| Overview | Status of each service, the public URL and a link to Studio. |
| Services → Database | Database size, tables, schemas, extensions, active connections, import/export and a Postgres restart. |
| Services → Authentication | Total and confirmed users, sign-in providers and OAuth, SMTP mailer settings and email templates. |
| Services → Storage | Buckets and storage usage. |
| Health & Operations → Monitoring | Resource usage for the stack. |
| Health & Operations → Live Logs | Logs for each service: db, auth, rest, realtime, storage, studio, kong and meta. |
| Health & Operations → Backups | Create, download, restore and delete database backups. |
| Configuration → Environment Variables | Edit the stack's environment settings. |
| Configuration → Updates | Compare your current version with the latest and update. |
Back up your Supabase database
Under Health & Operations → Backups, click to create a backup. SharkCluster runs a pg_dump snapshot of your database. You can choose what to include and the format:
- Scope: full database (schema and data), schema only, or data only.
- Format: Custom (compressed, smallest file), Plain SQL (most compatible) or Tar archive (easy to inspect).
Backups can be downloaded or restored from the same list. A restore overwrites the current data, so take a fresh backup first if you aren't sure.
These database backups sit alongside SharkCluster's server-level backups. For a production backend, use both: database dumps for quick point-in-time restores, and server backups to recover the whole machine. The post on how backups work in SharkCluster covers the server side.
Keeping Supabase updated
The Configuration → Updates tab shows the version you're running and the latest available. Updates are applied from the panel, so you don't pull images or edit Compose files by hand. Take a database backup before every update, and apply updates to a staging instance first if your app depends on specific Supabase behaviour.
Self-hosted vs hosted Supabase
| Hosted Supabase | Self-hosted on SharkCluster | |
|---|---|---|
| Pricing | Plan fee plus usage over quotas (database size, egress, storage, monthly active users) | Fixed monthly VPS price |
| Where data lives | Supabase's infrastructure | Your VPS, at the provider and region you choose |
| Setup | Instant | One click, a few minutes |
| Scaling | Move up a plan or add compute | Resize the server |
| Updates | Managed by Supabase | Applied by you from the panel |
| Backups | Included on paid plans | pg_dump backups in the panel plus server backups |
If you want zero server ownership, hosted Supabase is simpler. If you want a fixed cost and full control over where your data lives, self-hosting on SharkCluster gets you there without writing the Compose file yourself.
FAQ
Is self-hosted Supabase free?
Supabase itself is open source and free to self-host. You pay only for the VPS it runs on, at the catalogue price shown before you create the server.
Can I run Supabase on the same server as my other apps?
Yes, if the server has enough spare resources. Supabase needs at least 2 vCPU, 4 GB RAM and 20 GB of disk to itself. For production, a dedicated server is easier to size and troubleshoot.
Does the official supabase-js client work?
Yes. The instance exposes the standard Supabase API, so you only change the URL and the anon key in createClient.
Where do I find the Studio password?
In the Credentials tab of the Supabase dashboard. You can change the Studio username and password there.
Get started
Create a server with at least 2 vCPU and 4 GB RAM, open the Supabase tab and click install. You'll have your own Supabase backend with a domain, SSL and backups in a few minutes. See the self-hosted Supabase feature page or server pricing to plan your setup.
Run this on your own VPS
Deploy servers and applications on infrastructure you own, managed from one panel — backups, caching, firewall and monitoring included.

