Docmost
Open-source collaborative wiki and documentation software, an alternative to Confluence and Notion.
Alternative to: notion, confluence
Docmost is an open-source, self-hosted collaborative wiki and documentation platform built as an alternative to Confluence and Notion. It supports real-time collaborative editing, diagrams (Draw.io, Excalidraw, and Mermaid), spaces, groups, granular permissions management, comments, page history, and full-text search. Content can include file attachments and embeds from tools like Airtable, Loom, and Miro, with the interface available in 10+ languages.
Docmost Docker Compose example
Self-host Docmost on your own server, homelab, or VPS starting from this Docker Compose example.
It runs Docmost in Docker containers using the official docmost/docmost:latest, postgres:18, redis:8 images, with persistent volumes and automatic restarts preconfigured.
Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.
services:
docmost:
image: docmost/docmost:latest
depends_on:
- db
- redis
environment:
# Public base URL where users reach Docmost. Used for links and cookies.
APP_URL: "http://localhost:3000"
# Signing secret for sessions and tokens. Minimum 32 characters.
# Generate one with: openssl rand -hex 32
APP_SECRET: "changeme"
# PostgreSQL connection string. Points at the bundled "db" service.
DATABASE_URL: "postgresql://docmost:docmost@db:5432/docmost"
# Redis connection string. Points at the bundled "redis" service.
REDIS_URL: "redis://redis:6379"
volumes:
- data:/app/data/storage
restart: unless-stopped
db:
image: postgres:18
environment:
POSTGRES_DB: "docmost"
POSTGRES_USER: "docmost"
# Internal-only database password. Postgres is not published outside the
# compose network.
POSTGRES_PASSWORD: "docmost"
volumes:
- db_data:/var/lib/postgresql
restart: unless-stopped
redis:
image: redis:8
command: ["redis-server", "--appendonly", "yes", "--maxmemory-policy", "noeviction"]
volumes:
- redis_data:/data
restart: unless-stopped
volumes:
data:
db_data:
redis_data:
Values set to changeme are required — replace them with your own
values before starting Docmost.
Prefer a managed setup? WinterFlow installs, configures, and updates Docmost for you using this same Docker Compose configuration.