What is Supabase Lite?
Most Supabase apps use three things: the database, auth, and the auto-generated REST API. The full self-hosted distribution ships eleven services to cover every feature - this template ships the four that carry those three workloads: supabase-postgres, GoTrue, PostgREST, and the Kong gateway in front.
The payoff is footprint. The full stack wants 8-16 GiB; this core idles around 600 MiB and is sized to fit a 2 GiB plan. Studio and postgres-meta ride a compose profile - enable the dashboard when you are working on the schema, turn it off when you are not.
It is the same pinned upstream images and init SQL as the full template, minus the optional surface - so supabase-js works unchanged for database, auth, and REST calls, and if you grow into Realtime or Storage later, the full template takes over with the same database volume.
What you get
- Postgres + GoTrue auth + PostgREST behind one Kong gateway
- Fits a 2 GiB plan - core idles around 600 MiB
- Studio dashboard on an optional compose profile
- Same pinned images and init SQL as the full supabase template
- supabase-js compatible for db, auth, and REST
- Upgrade path: move the volume to the full template when you need more
How it runs on Lyngbak
| Service | Role | Public |
|---|---|---|
kong | gateway: APIs + Studio basic auth (:5000) | yes |
auth / rest | GoTrue + PostgREST | via kong |
db | supabase-postgres with its own volume | no |
studio + meta | dashboard (profile: studio) | via kong |
Before you deploy
POSTGRES_PASSWORDdatabase superuser password
JWT_SECRET32+ chars; ANON_KEY and SERVICE_ROLE_KEY are signed with it - set once, never rotate casually
ANON_KEY / SERVICE_ROLE_KEYJWTs signed with JWT_SECRET (use the supabase key generator)
DASHBOARD_USERNAME / DASHBOARD_PASSWORDKong basic auth in front of Studio
PG_META_CRYPTO_KEYpostgres-meta encryption key (studio profile)
Sizing and billing
Core (kong 512 + auth 256 + rest 256 + db 768 MiB) fits the 2 GiB plan with headroom - measured idle is ~600 MiB. Enabling the studio profile adds ~768 MiB: size up to 4 GiB while it is on, or toggle it only when needed.
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 8.79 GiB of volumes cost $0.15 per GiB a month ($1.32/mo) for as long as they exist. One workspace can use both. See pricing
Compared with the managed service
| Service | Plan | Price | Includes |
|---|---|---|---|
| Supabase Cloud | Pro | $25/mo | per org + metered compute/egress/storage/MAUs past included quotas |
The comparison flips versus the full stack: the lite core costs less than hosted Pro while keeping the always-on, no-meters, your-data advantages. 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
What do I give up versus the full Supabase stack?
Realtime (websocket change streams), Storage (file uploads), edge functions, the connection pooler, and image transforms. Database, auth, row-level security, and the REST/GraphQL API - the core most apps are built on - are all here.
Does supabase-js still work?
Yes, for everything this stack serves: createClient against your Kong URL, then auth flows and from()/rpc() queries work unchanged. Calls to realtime channels or storage buckets will fail - those services are not running.
Can I upgrade to the full stack later?
Yes - both templates use the same supabase-postgres image and init SQL, so the database volume carries over. Deploy the full supabase template pointing at your data and the extra services join around it.
Why is this stable when the full template is experimental?
Four services with fixed wiring are a much smaller surface than eleven with optional profiles. The core path (db, auth, rest, kong) is boot-tested end to end and changes rarely upstream.
Is a 2 GiB plan really cheaper than Supabase Cloud free tier?
The cloud free tier costs nothing - but it pauses projects after a week of inactivity and caps at two projects. This is for the step after: always-on, no Supabase meters, your infrastructure, still a fraction of the footprint of the full stack.