Deploy Docmost | Open Source Confluence, Notion, Obsidian Alternative
Railway

Deploy Docmost | Open Source Confluence, Notion, Obsidian Alternative

Self Host Docmost on Railway. Open-source wiki with real-time collaboration

Deploy Docmost | Open Source Confluence, Notion, Obsidian Alternative

DBs

Just deployed

/data

/var/lib/postgresql/data

Just deployed

/app/data/storage

Docmost logo

Deploy and Host Docmost on Railway

Deploy Docmost on Railway to get an open-source collaborative wiki and documentation platform running in minutes. Self-host Docmost as a powerful alternative to Confluence, Obsidian and Notion with full control over your data.

This Railway template pre-configures Docmost with PostgreSQL 16 for data storage and Redis 7 for caching, giving you a production-ready documentation platform with zero manual setup.

Getting Started with Docmost on Railway

After deployment completes, visit your Docmost URL to create your first workspace. You'll be prompted to set up an admin account with your email and password.

Once registered, create your first Space — a dedicated area for a team, project, or department. Inside a space, create pages using the rich block-based editor with support for tables, code blocks, callouts, diagrams (Mermaid and Draw.io), math equations, and file attachments.

Invite team members by navigating to Settings > Members. Docmost supports real-time collaborative editing — multiple users can work on the same page simultaneously without conflicts, powered by CRDT-based synchronization.

Docmost dashboard screenshot

About Hosting Docmost

Docmost is an open-source, enterprise-ready wiki and documentation platform built with Node.js (NestJS) and React. It solves the problem of team knowledge management without vendor lock-in or per-seat pricing.

Key features include:

  • Real-time collaboration — CRDT-based concurrent editing with no conflicts
  • Rich content editor — tables, code blocks, callouts, diagrams, math (KaTeX), file attachments
  • Spaces & permissions — organize by team, project, or department with role-based access
  • Full-text search — find content across all pages and spaces instantly
  • Page history & versioning — track changes and restore previous versions
  • Import support — migrate from Confluence, Notion, Markdown, and HTML
  • SSO & LDAP — SAML 2.0, OpenID Connect, LDAP, and MFA (Enterprise)
  • API access — JSON-RPC API for custom integrations (Enterprise)
  • Nested pages — unlimited hierarchical page structure

The architecture consists of three services: the Docmost application server (docmost/docmost), PostgreSQL for persistent data storage, and Redis for session management and caching.

Why Deploy Docmost on Railway

  • One-click deploy with PostgreSQL and Redis pre-configured
  • No per-seat licensing — unlimited users on the Community Edition
  • Full data sovereignty — your data stays on your infrastructure
  • Automatic HTTPS and custom domain support
  • Built-in volume persistence for database and file uploads

Common Use Cases for Self-Hosted Docmost

  • Company knowledge base — centralize policies, procedures, onboarding docs, and team playbooks with role-based access control
  • Engineering documentation — maintain API docs, architecture decision records, runbooks, and postmortems with code block support
  • Project wikis — organize project specs, meeting notes, and design docs in dedicated spaces per team or project
  • Compliance-ready documentation — self-host in air-gapped environments to meet GDPR, HIPAA, or ITAR requirements

Dependencies for Self-Hosted Docmost

  • Docmostdocmost/docmost:latest — main application server (Node.js/NestJS + React)
  • PostgreSQL 16postgres:16 — primary database for all application data
  • Redis 7redis:7 — caching layer and session management

Environment Variables Reference for Docmost on Railway

VariableDescriptionExample
APP_URLPublic-facing application URLhttps://${{RAILWAY_PUBLIC_DOMAIN}}
APP_SECRETSession signing key (32+ chars)Static hex string
DATABASE_URLPostgreSQL connection stringpostgresql://user:pass@host:5432/docmost
REDIS_URLRedis connection stringredis://host:6379
PORTHTTP server listening port3000
STORAGE_DRIVERFile storage backendlocal (or S3-compatible)
FILE_UPLOAD_SIZE_LIMITMaximum upload file size50mb

Deployment Dependencies

Hardware Requirements for Self-Hosting Docmost

ResourceMinimumRecommended
CPU1 vCPU2 vCPU
RAM1 GB2 GB
Storage5 GB20 GB+
RuntimeDockerDocker Compose

Docmost is lightweight compared to Confluence. On Railway, expect approximately $5–$10/month for a small team, scaling with usage.

Self-Hosting Docmost with Docker Compose

Clone the repository and start with Docker Compose:

git clone https://github.com/docmost/docmost.git
cd docmost

Create a .env file with your configuration:

APP_URL=https://docs.example.com
APP_SECRET=$(openssl rand -hex 32)
DATABASE_URL=postgresql://docmost:yourpassword@db:5432/docmost
REDIS_URL=redis://redis:6379

Start all services:

docker compose up -d

Docmost will be available at http://localhost:3000. The application automatically runs database migrations on first startup.

How Much Does Docmost Cost to Self-Host?

Docmost Community Edition is free and open-source under the AGPL-3.0 license. There are no per-seat fees, no feature gates on core functionality, and no usage limits.

The Enterprise Edition (Business plan) starts at $5/user/month and adds SSO (SAML, OIDC, LDAP), AI-powered answers, granular permissions, attachment search, and priority support.

On Railway, your only cost is infrastructure — typically $5–$10/month for a small team. No subscription fees, no vendor lock-in.

Docmost vs Confluence

FeatureDocmostConfluence
PricingFree (open-source)$6.05/user/month
Self-hostingFull supportData Center being phased out
Real-time editingCRDT-basedYes
Import/exportConfluence, Notion, MD, HTMLVarious
SSO/LDAPEnterprise EditionCloud Premium
Data sovereigntyFull controlAtlassian Cloud
Setup complexityDocker ComposeComplex infrastructure

Docmost offers a modern, lightweight alternative to Confluence with comparable features at zero licensing cost. For teams prioritizing data ownership and simplicity, Docmost is the stronger choice.

FAQ

What is Docmost and why should I self-host it? Docmost is an open-source collaborative wiki and documentation platform. Self-hosting gives you full control over your data, eliminates per-seat licensing costs, and allows deployment in air-gapped or compliance-restricted environments.

What does this Railway template deploy for Docmost? This template deploys three services: the Docmost application server (docmost/docmost:latest), PostgreSQL 16 for data storage, and Redis 7 for caching and session management. All services are pre-configured with volumes for data persistence.

Why does Docmost need PostgreSQL and Redis? PostgreSQL stores all application data — workspaces, pages, users, permissions, and page history. Redis handles session management, caching, and real-time collaboration state. Both are required for Docmost to function.

How do I enable SSO with self-hosted Docmost on Railway? SSO (SAML 2.0, OpenID Connect, LDAP) is available in the Enterprise Edition. Configure it via Settings > Authentication in the Docmost dashboard. Set your identity provider's metadata URL and configure attribute mappings.

Can I migrate from Confluence or Notion to self-hosted Docmost? Yes. Docmost supports importing from Confluence (XML export), Notion (HTML/Markdown export), and standard Markdown or HTML files. Use the import feature in Settings > Import to migrate your existing documentation.

How do I back up my Docmost data on Railway? Back up the PostgreSQL database using pg_dump via the public database URL. File attachments are stored in the Docmost volume at /app/data/storage. Railway volumes persist across redeploys.


Template Content

More templates in this category

View Template
Strapi
A popular self-hosted CMS

Milo
7.6K
Deploy
View Template
WordPress with Redis
Deploy WordPress with MariaDB and Redis

Noor Adn
View Template
Directus (docker/websocket/extensions) + PostGIS (docker/TCP) + S3/Local
Directus (Docker) + PostGIS (Docker/TCP) + S3

Protemplate