Deploy Alexandrie
Self-hosted Markdown notes and team knowledge base (Notion alternative)
Just deployed
Alexandrie
Just deployed
Just deployed
Just deployed
/data
MySQL
Just deployed
/var/lib/mysql
Deploy and Host Alexandrie on Railway
Alexandrie is an open-source (MIT) Markdown notes and knowledge-base app, positioned as an alternative to Notion, Obsidian and Confluence. It offers a rich Markdown editor, nested workspaces and documents, file uploads, sharing and team permissions, offline use in the browser, OIDC single sign-on and backups to S3 storage.
About Hosting Alexandrie
This template runs Alexandrie 8.14.4 from its official frontend (Nuxt) and backend (Go) images, pinned by digest and built from a public GitHub repo, so you get update notices when the pin is bumped. Notes, users and permissions live in Railway's MySQL. Uploads and backup archives live in RustFS, an S3-compatible store on its own volume. A small Caddy gateway serves the web app, the API and uploaded files from one public domain, so there are no CORS, cookie or extra domain settings. The JWT secret and storage keys are generated per deploy and nothing needs to be filled in. Sign-up is open on a fresh deploy: create your account, then close it (see below).
Common Use Cases
- Personal Markdown notes and knowledge base you own, as a self-hosted Notion or Obsidian alternative
- Team wiki and documentation with workspaces, sharing and per-user permissions
- Study notes, research and course material with images and file attachments
Dependencies for Alexandrie Hosting
- Alexandrie frontend and backend, built from the template's GitHub repo (official images pinned by digest)
- MySQL (Railway's MySQL service) for notes, users and permissions
- RustFS (S3-compatible object storage) for uploads and backups, plus a Caddy gateway for the public domain
Deployment Dependencies
- Alexandrie: https://github.com/Smaug6739/Alexandrie
- Alexandrie self-hosting docs: https://github.com/Smaug6739/Alexandrie/tree/main/docs/content/6.deploy
- RustFS: https://github.com/rustfs/rustfs
- Template repo and changelog: https://github.com/aalfath/alexandrie-railway-template
Implementation Details
After deploying, open https://YOUR-DOMAIN/signup and create your account. Then, on the Backend service, set CONFIG_DISABLE_SIGNUP=true (and on Frontend NUXT_PUBLIC_CONFIG_DISABLE_SIGNUP_PAGE=true) to close registration. To give yourself admin rights, open https://YOUR-DOMAIN/api/users/@me, copy result.id and set ADMIN_ACCOUNTS to it on Backend.
Optional features are left out of the template and can be added on Backend later: password-reset e-mail (SMTP_HOST, SMTP_MAIL, SMTP_PASSWORD, SMTP_MAIL_FROM) and single sign-on (OIDC_1_CONFIG_URL, OIDC_1_CLIENT_ID, OIDC_1_CLIENT_SECRET, OIDC_1_PROVIDER_NAME). If you add a custom domain to the Alexandrie service, update the https:// URL variables on Backend and Frontend to it.
Uploaded files are readable by anyone who has their URL (this is how Alexandrie serves images); backup archives are private. Back up both the MySQL and the RustFS volumes.
Why Deploy Alexandrie 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 Alexandrie 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
