
Deploy Zen
Self-hosted Markdown notes: tags, full-text search, version history, MCP
Just deployed
/data
Deploy and Host Zen on Railway
Zen is a self-hosted, single-user notes app by Shesh Babu. It stores Markdown notes in a local SQLite database and organises them with tags instead of folders. It has BM25 full-text search, note templates, pinned and archived notes, version history, image uploads, an experimental canvas and an MCP endpoint for AI assistants.
About Hosting Zen
Zen is one Go binary with an embedded web app, so hosting it needs a single service and one persistent disk. This template builds upstream's official Zen 2.0.0 image, pinned by digest, from our public GitHub repo and mounts a Railway volume at /data for the SQLite database and uploaded images. Upstream Zen lets the first visitor create the only account. Our start wrapper creates your owner account on a private port from generated variables before the public port opens, so nobody else can claim your instance. After deploy, open the public URL and sign in with ZEN_ADMIN_EMAIL and the generated ZEN_ADMIN_PASSWORD from the service's Variables tab.
Common Use Cases
- A private, self-hosted notebook or personal knowledge base you can reach from any browser or install as a PWA
- Journals, meeting notes, checklists and snippets organised with tags and found again with full-text search
- A notes store your AI assistant can search and read through Zen's MCP endpoint with a scoped API token
Dependencies for Zen Hosting
- Zen 2.0.0 (official image
ghcr.io/sheshbabu/zen/zen:2.0.0, pinned by digest) - One Railway volume at
/data(SQLite database and images)
Deployment Dependencies
- Zen source and docs: https://github.com/sheshbabu/zen
- Release 2.0.0: https://github.com/sheshbabu/zen/releases/tag/2.0.0
- Template repo: https://github.com/aalfath/zen-railway-template
Implementation Details
The template has one service, Zen, built from aalfath/zen-railway-template, with a public domain, a health check on / and the ON_FAILURE restart policy. Variables:
ZEN_ADMIN_EMAIL(defaultadmin@example.com): login email of the owner account. Zen sends no email, so any address works; change it before the first deploy if you like.ZEN_ADMIN_PASSWORD(generated, 24 characters): owner password. The wrapper refuses to start if it is empty or shorter than 12 characters.PORT(8080).
Both admin variables are used only on the first boot; after that, change your password in Zen's settings. Zen is single-user by design. It idles at about 15 MB of RAM, so it runs on Railway's Free plan (0.5 GB); the wrapper sets GOMAXPROCS and GOMEMLIMIT from the container's limits. Uploads are capped at 10 MB per image or import.
To connect an AI assistant, create an API token under Settings and point an MCP client at https://YOUR-DOMAIN/mcp with the header Authorization: Bearer YOUR-TOKEN. Semantic search needs the separate Zen Intelligence service, which this template does not include. Back up with Settings → Export.
Updates: when we bump the pinned Zen version in the repo, Railway shows an "update available" notice on your project; the repo's CHANGELOG lists breaking changes first. Your notes stay on the volume.
Why Deploy Zen 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 Zen 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
