Deploy DBHub
Self-hosted Supabase-style studio to manage any Postgres database
Just deployed
/var/lib/postgresql/data
Just deployed
Deploy and Host DBHub on Railway
DBHub is a self-hosted, Supabase Studio–style panel for any PostgreSQL database. Paste a connection string and get a table editor, SQL editor, schema tools, RLS policies, database roles, an MCP server for AI agents, and one-click database cloning — all behind a single access key.
About Hosting DBHub
DBHub runs as one service: a Fastify API that also serves the React front end, plus a small Postgres database where it keeps its own data (saved connections, sessions, MCP keys). Connection strings are encrypted with AES-256-GCM before being stored. On first boot, DBHub runs its migrations automatically and protects the panel with the access key generated by this template — no sign-up, no e-mail.
Common Use Cases
- Manage the Postgres databases of your Railway projects (or any provider) from one place
- Edit tables, columns, enums and data without writing SQL; hash password columns with bcrypt
- Clone production into an empty staging/dev database (structure and optionally data) with a live step-by-step view
- Let AI agents (Claude, Cursor, etc.) read or change your databases through the built-in MCP server with scoped keys
Dependencies for DBHub Hosting
- PostgreSQL (included in this template) for DBHub's internal data
- Network access from DBHub to the databases you want to manage (public URL or Railway private network)
Deployment Dependencies
- Docker image: https://github.com/Pedro-Furtado/DBHub/pkgs/container/dbhub
- Source code: https://github.com/Pedro-Furtado/DBHub
Implementation Details
After deploying, open the service URL and log in with DBHUB_ACCESS_KEY (Variables tab of the DBHub service). To change the key, set a new value and redeploy — all open sessions are signed out. Keep ENCRYPTION_KEY unchanged after first use, otherwise saved connections can no longer be decrypted. The interface is currently in Portuguese (pt-BR).
Why Deploy DBHub on Railway?
Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.
By deploying DBHub on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.
Template Content
