Supabase on Railway

Self-hosted Supabase: Postgres, Auth, APIs, Realtime, Storage and Studio, on Railway.

Official site · License: Apache-2.0 and MIT (varies by component) · 21 Railway templates

Deploy Supabase on RailwayCompare templates

Supabase is an open-source backend platform built on Postgres. It provides authentication, an instant REST and GraphQL API over your tables, realtime subscriptions, file storage, edge functions and a web dashboard called Studio. It is commonly compared with Firebase.

Developers building apps with AI tools often pick Supabase as the database and auth layer behind a generated frontend. Supabase also runs a hosted service; self-hosting gives you the same components on your own infrastructure.

Most Supabase components are Apache-2.0 or MIT licensed, and Postgres uses the PostgreSQL License.

What Supabase can do

  • Postgres database with extensions
  • Auth (GoTrue) with email and providers
  • REST and GraphQL APIs
  • Realtime subscriptions
  • Storage API and Edge Functions

What people use it for

  • Database and auth for a web or mobile app
  • Realtime features such as live updates
  • File uploads with storage policies
  • A self-hosted alternative to Firebase

Videos

Supabase in 100 Seconds · Fireship
Supabase Explained · Supabase
Intro to Supabase – Full Tutorial for Beginners · freeCodeCamp.org

Running Supabase on Railway

The Railway template follows the official self-hosted Docker setup and deploys about a dozen services: Envoy gateway, Postgres 17.6 with a volume, Studio, Auth, PostgREST, Realtime, Storage API, imgproxy, postgres-meta, Edge Runtime and Supavisor. Storage objects go to a Railway Bucket and only the gateway is public. Each service is billed for its own usage, so costs add up across them and Postgres is usually the bottleneck.

Supabase templates on Railway

Supabase Self-Hosted BackendMaintained by Tracklayer
Self-hosted Supabase on Railway: Postgres 17 with Supabase extensions, Auth, REST and GraphQL APIs, Realtime, Storage, Edge Functions, the Supavisor pooler and Studio. The template
16 deployments
Deploy
Supabase by Six
The ultimate Postgres development platform
971 deployments
Deploy
Supabase Postgres by an independent creator
Complete Postgres database with realtime capabilities and REST API
214 deployments
Deploy
Supabase | Open Source Firebase Alternative by an independent creator
Self Host Supabase. Auth, APIs, Functions, Subs, Vector embeddings & more
62 deployments
Deploy
Supabase Auth by an independent creator
Authentication and User Management by Supabase
60 deployments
Deploy
Next.js + Supabase (Prisma + tRPC) by an independent creator
A sensible modern set of defaults for a Next.js app with Supabase (+ auth!)
25 deployments
Deploy
PocketBase — Open Source Firebase & Supabase Alternative by an independent creator
Self-host PocketBase: Realtime DB, Auth & Storage on Railway
21 deployments
Deploy
Supabase Postgres by an independent creator
Supabase Postgres with 50+ extensions and optimized defaults
17 deployments
Deploy
SvelteKit Supabase by an independent creator
A modern web app starter powered by SvelteKit and Supabase
15 deployments
Deploy
Supabase (Self-Hosted, Full Stack) by an independent creator
Full Supabase stack: Postgres, Auth, REST, Storage, Studio behind Kong.
14 deployments
Deploy
Supabase by an independent creator
Firebase alternative. Full stack: auth, storage, realtime and functions
7 deployments
Deploy
Supabase + Edge Functions by an independent creator
Self-hosted Supabase with Auth, Storage, Realtime, Studio and Functions
6 deployments
Deploy
Supabase Lite by an independent creator
Minimal self-hosted Supabase stack: 7 services in 1.5 GB of RAM
4 deployments
Deploy
Supabase by an independent creator
Self-hosted Supabase: Postgres, auth, storage & edge functions
2 deployments
Deploy
DENO EDGE RUNTIME FOR SUPABASE by an independent creator
Deploy and Host DENO EDGE RUNTIME for SUPABASE with Railway
1 deployments
Deploy
FastAPI + Clerk + Supabase + Redis by an independent creator
Python API with Clerk auth, Supabase, and Redis caching
1 deployments
Deploy
nextjs-supabase-saas-starter-lite by an independent creator
Lite version of the Makerkit Next.js Supabase kit
1 deployments
Deploy
Supabase — Open Source Firebase Alternative by an independent creator
Self-host Supabase — Postgres, auth, storage & REST API in one
1 deployments
Deploy
Supabase Auth by an independent creator
Self-hosted Supabase Auth with SMTP and OAuth logins
1 deployments
Deploy
wacrm + Supabase by an independent creator
WhatsApp CRM on Meta's official API, with a self-hosted Supabase
1 deployments
Deploy
Kortix + Supabase by an independent creator
AI agent platform with cloud sandboxes and a self-hosted Supabase
0 deployments
Deploy

Tracklayer templates are listed first. Other Supabase templates follow, ordered by total deployments on Railway. How this works.

Deployment numbers as of 2026-11-20.

Questions about Supabase

How do I log in and get API keys?

Open the gateway's public domain and sign in with DASHBOARD_USERNAME and DASHBOARD_PASSWORD from its variables. Keys are in Studio under Project Settings, API. Use the gateway URL as SUPABASE_URL.

What should I configure after deploying?

Set GOTRUE_SITE_URL and GOTRUE_URI_ALLOW_LIST on Auth to your app URL, configure SMTP, then set GOTRUE_MAILER_AUTOCONFIRM to false so new users confirm their email.

Is the database reachable from outside?

Not by default. Apps on Railway use DATABASE_URL or the Supavisor pooler URL. A TCP proxy would send unencrypted Postgres traffic over the internet.

What drives the cost?

The roughly dozen services are billed separately, so RAM and CPU add up. The sources give no measured figures, so check usage in your own project.

How do I upgrade?

Image tags follow one upstream release. Compare Supabase's self-hosted changelog, update the tags and apply listed config changes. Do not change POSTGRES_PASSWORD, JWT_SECRET or PGSODIUM_ROOT_KEY after the first deploy without following Supabase's rotation guides.

Guides

Tracklayer maintains the templates marked as such; Supabase is a trademark of its owners and this site is not affiliated with them.