Deploy Docmost
Open-source collaborative wiki and knowledge base (Notion alternative).
Redis
Just deployed
/data
Docmost
Just deployed
/app/data/storage
Just deployed
/var/lib/postgresql/data
Deploy and Host Docmost on Railway
Docmost is an open-source collaborative wiki and documentation platform — a self-hosted alternative to Notion and Confluence. It provides real-time collaborative editing, a rich-text editor with diagram support (Draw.io, Excalidraw, Mermaid), spaces and groups with granular permissions, and full-text search across your entire knowledge base.
About Hosting Docmost
Hosting Docmost means running the official docmost/docmost container alongside two stateful services: PostgreSQL, which stores all workspaces, pages, and users (schema migrations run automatically at boot), and Redis, which powers queues and real-time collaboration. The app listens on port 3000 and needs APP_URL (its public URL), a 32+ character APP_SECRET, DATABASE_URL, and REDIS_URL. Uploads and attachments live on disk at /app/data/storage, so a persistent volume is mounted there to survive redeploys. This template provisions all of it: Railway's official Postgres and Redis templates, connection strings injected via service references, a generated secret, and a public domain — no manual wiring required.
Common Use Cases
- Internal team wiki and knowledge base with real-time collaborative editing
- Project and product documentation hub organized into spaces with permissions
- Self-hosted Notion/Confluence alternative for teams requiring full data ownership
Dependencies for Docmost Hosting
- PostgreSQL (deployed from Railway's official template; provides
DATABASE_URL) - Redis (deployed from Railway's official template; provides
REDIS_URL)
Deployment Dependencies
- Docmost documentation: https://docmost.com/docs
- Self-hosting / installation guide: https://docmost.com/docs/installation
- Source code: https://github.com/docmost/docmost
- Docker image: https://hub.docker.com/r/docmost/docmost
Implementation Details
The template deploys three services: Docmost (image docmost/docmost:0.95.0, pinned immutable tag), Postgres, and Redis. Docmost connects over Railway's private network via DATABASE_URL=${{Postgres.DATABASE_URL}}?sslmode=disable and REDIS_URL=${{Redis.REDIS_URL}}. APP_SECRET is generated per deployment with ${{secret(64, "abcdef0123456789")}}, and APP_URL references the service's own generated public domain. A persistent volume mounted at /app/data/storage retains uploaded files across redeploys.
Why Deploy Docmost 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 Docmost 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