Scripts2026年4月10日·1 分钟阅读

Docmost — Open Source Collaborative Wiki & Documentation

Docmost is an open-source Confluence and Notion alternative for team wikis and documentation, featuring real-time collaboration, rich editor, and permission management.

SC
Script Depot · Community
快速使用

先拿来用,再决定要不要深挖

这里应该同时让用户和 Agent 知道第一步该复制什么、安装什么、落到哪里。

git clone https://github.com/docmost/docmost.git
cd docmost
cp .env.example .env
docker compose up -d

Open http://localhost:3000 — set up your workspace and start creating documentation.

介绍

Docmost is an open-source collaborative wiki and documentation platform designed as a self-hosted alternative to Confluence and Notion. Built with a modern tech stack (NestJS + React), it provides real-time collaborative editing, nested page organization, rich media support, and workspace-level permissions for team knowledge management.

With 19.7K+ GitHub stars and AGPL-3.0 license, Docmost offers organizations a way to maintain their knowledge base with full data ownership and no per-seat licensing fees.

What Docmost Does

Docmost provides enterprise-grade documentation features:

  • Real-time Collaboration: Multiple users can edit the same page simultaneously with live cursors and presence indicators
  • Rich Editor: Block-based editor with Markdown shortcuts, tables, code blocks, callouts, and embeds
  • Nested Pages: Infinite page nesting with drag-and-drop reordering in the sidebar
  • Spaces: Organize documentation into separate spaces (Engineering, Product, HR, etc.) with independent permissions
  • Permissions: Role-based access control at workspace, space, and page levels
  • Comments & Mentions: Inline comments on any page content with @mention notifications
  • Search: Full-text search across all pages with instant results
  • Page History: Version history with diff view and restore capability

Architecture

┌──────────────┐     ┌──────────────┐     ┌──────────────┐
│  React       │────▶│  NestJS      │────▶│  PostgreSQL  │
│  Frontend    │     │  API Server  │     │  (Prisma)    │
└──────────────┘     └──────┬───────┘     └──────────────┘
                            │
                     ┌──────┴───────┐
                     │  Redis       │
                     │  (Sessions & │
                     │   Realtime)  │
                     └──────────────┘

Self-Hosting

Docker Compose (Recommended)

services:
  docmost:
    image: docmost/docmost:latest
    ports:
      - "3000:3000"
    environment:
      APP_URL: http://localhost:3000
      APP_SECRET: your-random-secret-key
      DATABASE_URL: postgresql://docmost:docmost@db:5432/docmost
      REDIS_URL: redis://redis:6379
    depends_on:
      - db
      - redis

  db:
    image: postgres:16-alpine
    environment:
      POSTGRES_USER: docmost
      POSTGRES_PASSWORD: docmost
      POSTGRES_DB: docmost
    volumes:
      - pg-data:/var/lib/postgresql/data

  redis:
    image: redis:7-alpine
    volumes:
      - redis-data:/data

volumes:
  pg-data:
  redis-data:

Key Features

Block-Based Editor

The editor supports a wide range of content blocks:

  • Text: Headings (H1-H6), paragraphs, quotes, callouts
  • Lists: Bullet, numbered, toggle, task lists
  • Media: Images, videos, file attachments with drag-and-drop upload
  • Code: Syntax-highlighted code blocks with 100+ language support
  • Tables: Full-featured tables with column resize and sorting
  • Embeds: YouTube, Loom, Figma, Miro, and custom iframe embeds
  • Math: LaTeX math equations (inline and block)
  • Diagrams: Mermaid and Draw.io diagrams rendered inline

Space Organization

Workspace
├── Engineering Space
│   ├── Architecture
│   │   ├── System Overview
│   │   └── API Design
│   ├── Runbooks
│   └── Onboarding
├── Product Space
│   ├── PRDs
│   └── Research
└── Company Space
    ├── Policies
    └── Handbook

Import & Export

  • Import from Confluence (XML export)
  • Import from Notion (HTML/Markdown export)
  • Export pages as Markdown or PDF
  • Bulk export entire spaces

Docmost vs Alternatives

Feature Docmost Confluence Notion Outline
Open Source Yes (AGPL-3.0) No No Yes (BSL)
Self-hosted Yes Data Center No Yes
Real-time collab Yes Yes Yes Yes
Nested pages Yes Yes Yes Yes
Spaces Yes Yes Teamspaces Collections
Pricing Free (self-host) Per user Per user Free (self-host)
Import from Confluence Yes N/A Limited Yes

常见问题

Q: Docmost 适合多大规模的团队? A: 从小团队到数百人的组织都适用。PostgreSQL 后端确保良好的扩展性。如果超过 100 人同时在线编辑,建议增加 Redis 和应用层的资源。

Q: 可以从 Confluence 迁移吗? A: 可以。Docmost 支持从 Confluence 导出的 XML 文件导入,包括页面层级结构、附件和基本格式。复杂的 Confluence 宏可能需要手动调整。

Q: 支持 SSO/LDAP 吗? A: 支持 SAML SSO 和 Google OAuth 登录。LDAP 支持在开发路线图中。

来源与致谢

讨论

登录后参与讨论。
还没有评论,来写第一条吧。

相关资产