---
title: "Deploy draw.io"
description: "Browser diagram editor (draw.io 32.7.4), pinned, no prompts, auto updates"
category: "Other"
url: https://railway.com/deploy/drawio-1
---

# Deploy draw.io

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

**[Deploy draw.io on Railway](https://railway.com/template/drawio-1)**

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

- **Creator:** Agaz Self-Host
- **Category:** Other

## Template content

### draw.io https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/png/draw-io.png

- **Source:** https://github.com/aalfath/drawio-railway-template
- **Health check:** /healthz
- **Public domain:** Yes

## Documentation

# 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

* [draw.io](https://github.com/jgraph/drawio) and its [v32.7.4 release](https://github.com/jgraph/drawio/releases/tag/v32.7.4)
* [Official Docker image and its variables](https://github.com/jgraph/docker-drawio)
* [Template repo](https://github.com/aalfath/drawio-railway-template)

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



## Similar templates

- [Rocky Linux](https://railway.com/deploy/rocky-linux) — Hosted Rocky Linux 9 workspace with SSH and persistent storage. 🚀
- [Foundry Virtual Tabletop](https://railway.com/deploy/X5tR6G) — Self-hosted virtual tabletop for role-playing games (license required)
- [Double Commander in your browser](https://railway.com/deploy/double-commander-in-your-browser) — The Double Commander file manager in the cloud, from any device

Open this page in a browser: https://railway.com/deploy/drawio-1
