Deploy drawDB
Database diagram editor and SQL generator, pinned v1.9.0, no database
Just deployed
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
- drawDB source: https://github.com/drawdb-io/drawdb
- drawDB v1.9.0 release: https://github.com/drawdb-io/drawdb/releases/tag/v1.9.0
- Container image: https://github.com/drawdb-io/drawdb/pkgs/container/drawdb
- Template repo: https://github.com/aalfath/drawdb-railway-template
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
