---
title: "Deploy Docmost"
description: "Open-source collaborative wiki and knowledge base (Notion alternative)."
category: "CMS"
url: https://railway.com/deploy/docmost-4
---

# Deploy Docmost

Open-source collaborative wiki and knowledge base (Notion alternative).

**[Deploy Docmost on Railway](https://railway.com/template/docmost-4)**

- **Creator:** Agaz Self-Host
- **Category:** CMS
- **Total deploys:** 1

## Template content

### Redis https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg

- **Image:** redis:8.2.1
- **Start command:** `/bin/sh -c "rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH"`

### Docmost

- **Image:** docmost/docmost:0.95.0
- **Public domain:** Yes

### Postgres https://devicons.railway.app/i/postgresql.svg

- **Image:** ghcr.io/railwayapp-templates/postgres-ssl:18

## Documentation

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


## Similar templates

- [Libredesk - Complete Setup](https://railway.com/deploy/libredesk-complete-setup) — Complete self-hosted omnichannel customer support desk.
- [Paperless-ngx](https://railway.com/deploy/paperless-ngx-3) — Paperless-ngx — document management with OCR and full-text search
- [Instatic CMS - Postgres](https://railway.com/deploy/instatic-cms-postgres) — Design, build and manage powerful static sites from state-of-the-art CMS

Open this page in a browser: https://railway.com/deploy/docmost-4
