---
title: "Deploy DBHub"
description: "Self-hosted Supabase-style studio to manage any Postgres database"
category: "Storage"
url: https://railway.com/deploy/dbhub
---

# Deploy DBHub

Self-hosted Supabase-style studio to manage any Postgres database

**[Deploy DBHub on Railway](https://railway.com/template/dbhub)**

Machine-readable deploy manifest (JSON, validated by TemplateCI): https://railway.com/deploy/dbhub/manifest.json

- **Creator:** PEDRO FURTADO NETO's Projects
- **Category:** Storage
- **Total deploys:** 4

## Template content

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

### dbhub https://raw.githubusercontent.com/Pedro-Furtado/DBHub/main/public/icon-service.png

- **Image:** ghcr.io/pedro-furtado/dbhub:latest
- **Health check:** /api/health
- **Public domain:** Yes

## Documentation

# 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.

## Similar templates

- [RustFS | (Just Updated) S3 Object Store, Public URL and Keys Set](https://railway.com/deploy/rustfs-or-just-updated-s3-object-store-p) — S3-compatible object store, keys and public URL preset, volume kept
- [TimescaleDB](https://railway.com/deploy/timescaledb-railway-template) — A PostgreSQL-based time-series database for analytics on Railway.
- [Neo4j 2026.10 Community](https://railway.com/deploy/neo4j-202610-community) — Neo4j graph database with APOC, Browser, Bolt TCP proxy and a volume

Open this page in a browser: https://railway.com/deploy/dbhub
