Supabase on Railway
Self-hosted Supabase: Postgres, Auth, APIs, Realtime, Storage and Studio, on Railway.
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
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
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.