Miget is now Lyngbak. Same platform, same plans, same API.Why the name →

Startups get $300 or more in Lyngbak credits.Apply →

Moving production infrastructure? We migrate it for you, free.Talk to us →

PricingEnterpriseDashboard
Start for Free
← All templates

Supabase

The full self-hosted Supabase stack - Postgres, Auth, REST, Realtime, Storage, Studio - behind one Kong gateway.

8 GiB

8 services, 20 GB disk

$49/mo

flat resource

$0.12/h

Usage Billing

What is Supabase?

Supabase is the open-source Firebase: Postgres at the core, with auth, auto-generated REST APIs, realtime subscriptions, file storage, and a polished Studio dashboard around it. The whole point of it being open source is that you can run it yourself - this template is the official self-hosting compose, adapted to deploy in one step.

Only the Kong gateway is public: it fronts the APIs and serves Studio behind basic auth. Postgres runs Supabase’s own image (custom extensions and roles - deliberately not a managed database). Optional components ride compose profiles: supavisor (connection pooling), edge functions, and imgproxy enable only if you turn their profiles on.

This is the largest template in the catalogue and marked experimental - validate on a dev project first. The payoff: no project pausing, no MAU pricing, no egress anxiety, and a backend that lives on your infrastructure.

What you get

  • Full stack: Postgres (supabase image), GoTrue, PostgREST, Realtime, Storage, postgres-meta, Studio
  • Single public entrypoint: Kong gateway with Studio behind basic auth
  • Optional profiles: supavisor pooler, edge functions, imgproxy
  • The same supabase-js client your frontend already uses
  • No MAU caps, no project pausing, no per-GB egress pricing
  • 20 GB Postgres volume; all state on your disks

How it runs on Lyngbak

ServiceRolePublic
kongAPI gateway + Studio entrypoint (:5000)yes (dashboard behind basic auth)
dbPostgres (supabase image, extensions + roles)no
auth / rest / realtime / storage / meta / studioSupabase servicesno
supavisor / functions / imgproxyoptional, via compose profilesno

Before you deploy

  • POSTGRES_PASSWORD, JWT_SECRET, ANON_KEY, SERVICE_ROLE_KEY

    core secrets (see template README for generation)

  • DASHBOARD_USERNAME / DASHBOARD_PASSWORD

    Studio basic auth at the Kong gateway

Sizing and billing

Core stack (no optional profiles) totals ~6.5 GiB. Enabling supavisor + functions + imgproxy adds ~2.5 GiB - size for 16 GiB if you want everything on.

Hobby resource$49/mo2 vCPU, 4 GiB + 4 GiB RAM add-on, 80 GiB disk, shared CPU
Pro resource$69/mo2 vCPU, 4 GiB + 4 GiB RAM add-on, 25 GiB disk, dedicated CPU
Usage Billing, shared CPU$0.12/h6 vCPU, 8 GiB reserved. $88/mo for a full month, billed by the second.
Usage Billing, dedicated CPU$0.52/h11 vCPU, 22 GiB reserved. $374/mo for a full month, billed by the second.

A resource is a flat monthly price, with RAM and disk add-ons when the stack needs a little more than a tier, and room for your own apps on a larger one. On Usage Billing each service takes the smallest size that fits it and is billed by the second it runs, so a stopped stack stops costing CPU and RAM. Its 32.71 GiB of volumes cost $0.15 per GiB a month ($4.91/mo) for as long as they exist. One workspace can use both. See pricing

Compared with the managed service

ServicePlanPriceIncludes
Supabase CloudPro$25/moper org + metered compute/egress/storage/MAUs past included quotas

Hosted Pro is excellent value at small scale - self-hosting wins on data ownership and once the meters (egress, MAU, compute) start running. Prices from each vendor's pricing page, June 2026.

Run it locally first

The same compose file runs with plain Docker Compose. Clone the template source, copy .env.example to .env, and run docker compose up -d.

Questions

Why self-host Supabase instead of using supabase.com?

Control and cost shape: Supabase Cloud Pro is a monthly base plus metered compute, egress, storage, and MAUs. Self-hosted has none of those meters - no project pausing, and data that never leaves your infrastructure. The trade: you operate it (updates, backups) yourself.

Does supabase-js work against a self-hosted instance?

Yes - point createClient at your Kong gateway URL with the ANON_KEY you generated. Auth, PostgREST queries, realtime channels, and storage all flow through the same gateway, exactly like the hosted product.

What is different from the official Supabase self-hosting guide?

Nothing structural - this is the official compose, adapted to the platform: Kong as the single public service, everything else private, profile-gated optional components, and platform overrides for RAM and volumes so it deploys in one step.

Why is this template marked experimental?

It is the biggest stack in the catalogue (8-11 services) and Supabase evolves its self-hosting compose actively. It works, but validate on a dev project before trusting it with production, and expect template updates tracking upstream.

Can I use a managed Postgres with Supabase?

No - Supabase requires its own Postgres image with custom extensions and roles, so this template deliberately runs the database as a container with a 20 GB volume rather than a managed service.

Read the production guide →

Works well with

n8n

n8n in queue mode - editor plus horizontally scalable workers, with managed Postgres and Valkey auto-wired.

Open the template →

Metabase

BI dashboards non-analysts actually use - point-and-click questions over your databases, on a managed Postgres.

Open the template →

MinIO

S3-compatible object storage you fully control - single node, 20 GB volume, web console included.

Open the template →
Supabase: the full stack with Docker Compose | Lyngbak (formerly Miget)