Deploy draw.io

Browser diagram editor (draw.io 32.7.4), pinned, no prompts, auto updates

Deploy draw.io

Deploy and Host draw.io on Railway

draw.io (diagrams.net) is an open-source diagram editor that runs in the browser. It covers flowcharts, UML, network and cloud architecture diagrams, org charts, ER models and BPMN, with large shape libraries including AWS, Azure, Google Cloud and Kubernetes icons. Diagrams are plain XML files that you keep.

About Hosting draw.io

This template deploys one service, draw.io: the official jgraph/drawio image (version 32.7.4, pinned by digest) on Tomcat, built from a public GitHub repo. It listens on Railway's PORT behind your HTTPS domain, with a /healthz health check, and starts in a few seconds. draw.io stores nothing on the server. Users save diagrams to their own device, the browser, or a connected GitHub, GitLab, Google Drive or OneDrive account, so a redeploy loses nothing and no database or volume is needed. The deploy form asks for nothing. After deploy, open the public URL and start drawing. To keep the instance private, set DRAWIO_USERNAME and DRAWIO_PASSWORD on the service to turn on basic auth.

Common Use Cases

  • Architecture, network and cloud infrastructure diagrams that stay on your own server
  • Flowcharts, UML, ER and BPMN diagrams for engineering and product teams
  • Org charts, mind maps and whiteboard sketches with no account or sign-up

Dependencies for draw.io Hosting

  • One service built from the template repo (official jgraph/drawio image, Tomcat with Java 11)
  • No database, cache or volume: draw.io keeps no data on the server

Deployment Dependencies

Implementation Details

  • Updates: each new draw.io release is a commit to the template repo's main branch (pinned version, digest and a changelog entry). Railway shows an "update available" notice on your service, and you choose when to apply it.
  • Optional basic auth: set both DRAWIO_USERNAME and DRAWIO_PASSWORD on the service. /healthz stays open for the health check.
  • Exports: PNG, JPEG, SVG and HTML exports render in the browser. PDF uses the browser's print dialog, because upstream's separate export server has reached end of life.
  • Integrations and settings: the image's DRAWIO_* variables still work, such as DRAWIO_CONFIG, DRAWIO_LANG and the Google Drive, OneDrive and GitLab sign-in. After you add a custom domain, set DRAWIO_BASE_URL to https://YOUR-DOMAIN.

Why Deploy draw.io 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 draw.io 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