Deploy drawDB

Database diagram editor and SQL generator, pinned v1.9.0, no database

Deploy drawDB

Deploy and Host drawDB on Railway

drawDB is a free, open-source database diagram editor that runs in the browser. You draw tables, columns and relationships on a canvas, and drawDB generates the SQL for MySQL, PostgreSQL, SQLite, MariaDB, SQL Server and Oracle. It can also import an existing SQL schema and export diagrams as images, JSON or DBML.

About Hosting drawDB

This template deploys the official drawDB image, v1.9.0, pinned by digest and built from our GitHub repo. nginx serves the app on Railway's PORT, and a /healthz health check confirms each deploy before traffic switches over. drawDB has no server-side storage: every visitor's diagrams are saved in their own browser (IndexedDB), so the template needs no database and no volume, and a redeploy never touches anyone's work. Use Export (.ddb or JSON) to back up or move diagrams between browsers. The app has no login, so anyone with the URL can use the editor, but they only see their own diagrams.

Common Use Cases

  • Design a new database schema visually and export the SQL for your engine
  • Import an existing SQL dump to document and review its tables and relationships
  • Give a team a private, self-hosted diagram tool with no account or tracking

Dependencies for drawDB Hosting

  • The official drawDB container image (ghcr.io/drawdb-io/drawdb), served by nginx
  • A modern web browser; diagrams are stored in the browser's IndexedDB

Deployment Dependencies

Implementation Details

The only variable is PORT (default 8080), which nginx listens on and the public domain targets. After deploy, open the Railway domain and choose a database to start a diagram. Sharing diagrams by link needs a separate drawdb-server; if you run one, set VITE_BACKEND_URL (and optionally VITE_GIST_BACKEND_URL) on the service and redeploy. To get a new drawDB version, apply the "update available" notice Railway shows when we bump the pinned image; the repo's CHANGELOG.md lists each version, with breaking changes first.

Why Deploy drawDB 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 drawDB 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

More templates in this category

View Template
Rocky Linux
Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀

codestorm
51
View Template
Foundry Virtual Tabletop
Self-hosted virtual tabletop for role-playing games (license required)

Lucas
71
View Template
NEW
Double Commander in your browser
The Double Commander file manager in the cloud, from any device

Nermin Sabanovic
0