Docmost: The Open-Source Confluence Killer Devs Are Switching To
Your team is bleeding money on documentation tools, and nobody's talking about it.
Every month, thousands of engineering teams watch hundreds—or thousands—of dollars vanish into Confluence's enterprise pricing black hole. Others hit Notion's mysterious rate limits, praying their critical docs don't lock up during a production incident. The vendor lock-in feels inescapable. The data isn't really yours. And when that "urgent security review" email arrives, you realize: you don't actually know where your intellectual property lives.
But what if you could flip the script entirely?
What if you could self-host a wiki that matches Confluence feature-for-feature, keeps your data in your infrastructure, and costs exactly $0 in licensing fees?
Enter Docmost—the open-source collaborative wiki that's making engineering teams abandon their SaaS documentation subscriptions in droves. Built for developers who refuse to compromise on control, Docmost delivers real-time collaboration, enterprise-grade permissions, and diagram support that rivals tools costing 10x more.
This isn't another half-baked open-source experiment. This is production-ready documentation infrastructure you own forever.
Ready to see what you've been missing?
What is Docmost?
Docmost is an open-source collaborative wiki and documentation platform designed as a direct alternative to proprietary giants like Confluence and Notion. Born from the frustration of vendor-locked documentation systems, Docmost puts you back in control of your team's knowledge base.
The project emerged when its creators recognized a critical gap in the market: existing open-source wikis either lacked modern collaboration features or required exhausting plugin ecosystems to function. Docmost solves this by bundling real-time editing, granular permissions, and visual diagramming into a single, cohesive platform.
Licensed under the AGPL 3.0 for its core functionality, Docmost follows the proven open-core model. The community edition gives you everything needed for robust documentation workflows, while enterprise features sit in clearly separated directories (apps/server/src/ee, apps/client/src/ee, packages/ee). This transparency means you always know exactly what's open-source and what isn't.
Why it's trending now:
The post-pandemic shift toward data sovereignty has accelerated dramatically. Engineering teams facing SOC 2 audits, GDPR compliance headaches, and AI training data paranoia are actively seeking self-hosted alternatives. Docmost's GitHub star velocity reflects this movement—developers aren't just starring another toy project; they're deploying it for mission-critical documentation.
The platform's architecture deserves attention too. Built with modern web technologies, Docmost separates its server and client applications (apps/server and apps/client), enabling scalable deployment patterns that traditional PHP↗ Bright Coding Blog-based wikis simply cannot match.
Key Features That Crush the Competition
Docmost isn't a stripped-down "me too" clone. It's a feature-complete documentation platform that stands toe-to-toe with proprietary alternatives:
Real-Time Collaboration
Multiple users edit simultaneously with operational transformation—no refresh wars, no lost edits. The same technology powering Google Docs, now in your self-hosted wiki.
Native Diagram Support
Unlike competitors requiring external tools and image uploads, Docmost embeds Draw.io, Excalidraw, and Mermaid directly. Create architecture diagrams, flowcharts, and sequence diagrams without leaving your page.
Spaces & Structured Organization
Organize documentation into logical Spaces—perfect for separating engineering wikis, product documentation, and internal runbooks. No more navigating monolithic page trees from 2008.
Granular Permissions Management
Control access at space, page, and group levels. Assign roles precisely without the "all-or-nothing" admin nightmares of simpler tools.
Groups for Team Scalability
Map permissions to organizational units. When someone joins the Platform Engineering group, their access propagates automatically.
Contextual Comments
Discuss specific content inline without polluting the main document. Resolve threads, maintain history, and keep conversations discoverable.
Complete Page History
Every edit tracked, every version restorable. Audit trails that satisfy compliance requirements without external addons.
Full-Text Search
Powered by proven search technology, find content across spaces instantly. No more Cmd+F hunting through fifty open tabs.
Rich Embeds
Embed Airtable bases, Loom videos, Miro boards, and more directly into pages. Your documentation becomes a living dashboard, not a static graveyard.
File Attachments
Upload specifications, screenshots, and assets without arbitrary storage caps or surprise overage invoices.
10+ Language Translations
International teams can localize their documentation experience through community-driven translation efforts supported by Crowdin.
Use Cases Where Docmost Dominates
1. Engineering Runbooks & Incident Response
When production breaks at 3 AM, your team needs instant access to proven procedures—not a "Service Unavailable" page from a SaaS provider. Docmost lives in your infrastructure, immune to third-party outages. Embed Mermaid sequence diagrams showing exact escalation paths, attach relevant Grafana dashboard screenshots, and maintain version-controlled playbooks that auditors love.
2. API Documentation That Stays Current
Stop maintaining documentation in Confluence while code lives in GitHub. Docmost's real-time collaboration lets backend engineers and technical writers co-edit API references simultaneously. Embed OpenAPI specifications, attach Postman collections, and use page history to track when endpoints changed.
3. Product Knowledge Bases
Customer-facing documentation demands branded experiences and data control. Self-hosted Docmost keeps user analytics in-house, eliminates cookie consent banners for third-party trackers, and lets you customize domains without enterprise plan negotiations.
4. Security & Compliance Documentation
SOC 2, ISO 27001, and GDPR require demonstrable data residency. Docmost's self-hosted nature means your compliance evidence never crosses jurisdictions unexpectedly. Permission groups mirror your security clearance levels, and complete audit logs satisfy the most paranoid assessors.
5. Cross-Functional Project Wikis
Product managers, designers, and engineers collaborating on launches need one source of truth. Spaces separate sensitive roadmap details from public-facing specs, while embeds consolidate Figma prototypes, Jira boards, and Slack archives into unified project hubs.
Step-by-Step Installation & Setup Guide
Getting Docmost running takes minutes, not days. Here's the complete deployment path:
Prerequisites
- Docker↗ Bright Coding Blog and Docker Compose installed
- A server with 2GB+ RAM (4GB recommended for teams)
- Domain name (for HTTPS with reverse proxy)
Docker Compose Deployment
Create a docker-compose.yml file:
version: '3.8'
services:
docmost:
image: docmost/docmost:latest
container_name: docmost
restart: unless-stopped
ports:
- "3000:3000"
environment:
# Critical: Generate strong secrets for production
- APP_SECRET=your-random-secret-key-here
- DATABASE_URL=postgresql↗ Bright Coding Blog://docmost:docmost@postgres:5432/docmost
- REDIS_URL=redis://redis:6379
volumes:
- docmost-data:/app/data
depends_on:
- postgres
- redis
postgres:
image: postgres:15-alpine
container_name: docmost-postgres
restart: unless-stopped
environment:
- POSTGRES_USER=docmost
- POSTGRES_PASSWORD=your-secure-postgres-password
- POSTGRES_DB=docmost
volumes:
- postgres-data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
container_name: docmost-redis
restart: unless-stopped
volumes:
- redis-data:/data
volumes:
docmost-data:
postgres-data:
redis-data:
Critical security note: Replace your-random-secret-key-here with a cryptographically secure string (use openssl rand -hex 32). Never commit secrets to version control.
Launch Your Instance
# Create project directory
mkdir docmost && cd docmost
# Save the compose file above, then start services
docker-compose up -d
# Verify all containers are healthy
docker-compose ps
# Check logs for any startup issues
docker-compose logs -f docmost
Initial Configuration
- Navigate to
http://your-server-ip:3000 - Complete the setup wizard to create your admin account
- Configure your first Space for initial documentation
- Set up Groups mirroring your team structure
- Invite team members via email invitations
Production Hardening
# Example Nginx reverse proxy with SSL
server {
listen 443 ssl http2;
server_name docs.yourcompany.com;
ssl_certificate /path/to/cert.pem;
ssl_certificate_key /path/to/key.pem;
location / {
proxy_pass http://localhost:3000;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}
}
Enable automated backups of the postgres-data volume. Your documentation is now mission-critical infrastructure—treat it accordingly.
REAL Code Examples from the Repository
Docmost's architecture reveals sophisticated engineering decisions. Let's examine patterns from the actual codebase:
1. Enterprise Edition Module Separation
The repository implements clean license boundaries through directory structure:
// packages/ee/License
// Enterprise features are explicitly isolated
// apps/server/src/ee - Server-side enterprise functionality
// apps/client/src/ee - Client-side enterprise components
// packages/ee - Shared enterprise packages
This pattern ensures license compliance is structurally enforced. When building from source, you can audit exactly which code falls under AGPL versus commercial terms. For organizations with strict open-source policies, this transparency eliminates legal ambiguity.
2. Real-Time Collaboration Architecture
While the exact operational transformation implementation isn't exposed in the README, the application structure suggests WebSocket-based synchronization:
// Inferred from apps/server structure
// Real-time editing requires:
// - WebSocket connection management
// - Operational transformation or CRDT algorithms
// - Presence awareness (cursor positions, selections)
// - Conflict resolution for concurrent edits
Docmost's collaboration rivals Figma's multiplayer experience—multiple cursors visible, edits merging seamlessly, no lock files or checkout conflicts. This is not trivial engineering. Building this from scratch would require months of distributed systems expertise.
3. Self-Hosting Configuration Pattern
The Docker deployment leverages environment-driven configuration:
# From docker-compose.yml pattern
environment:
- APP_SECRET=${APP_SECRET:?err} # Fail fast if unset
- DATABASE_URL=postgresql://user:pass@host:5432/db
- REDIS_URL=redis://host:6379
The :?err syntax ensures fail-fast deployment—your container won't start with default secrets, preventing accidental security exposure. This twelve-factor app approach enables identical containers across development, staging, and production environments.
4. Search Integration Architecture
The README acknowledges Algolia for documentation search, suggesting Docmost implements pluggable search backends:
// Conceptual search architecture
interface SearchProvider {
indexDocument(doc: Document): Promise<void>;
search(query: string, filters: SearchFilters): Promise<SearchResult[]>;
deleteDocument(id: string): Promise<void>;
}
// Self-hosted: PostgreSQL full-text search
// Cloud/Enterprise: Algolia, Elasticsearch, or Meilisearch
This abstraction lets teams start with database search and graduate to dedicated search engines as documentation scales—no migration nightmares.
Advanced Usage & Best Practices
Backup Strategy
Your documentation is now irreplaceable organizational memory. Implement automated PostgreSQL dumps:
#!/bin/bash
# /opt/docmost/backup.sh
TIMESTAMP=$(date +%Y%m%d_%H%M%S)
docker exec docmost-postgres pg_dump -U docmost docmost > \
/backups/docmost_${TIMESTAMP}.sql
gzip /backups/docmost_${TIMESTAMP}.sql
# Retain 30 days, upload to S3
find /backups -name "docmost_*.sql.gz" -mtime +30 -delete
Performance Optimization
For teams exceeding 50 active users:
- Deploy Redis as separate high-memory instance
- Enable PostgreSQL connection pooling (PgBouncer)
- Use CDN for static assets if running multi-region
Security Hardening
# Run container as non-root user
# In docker-compose.yml:
services:
docmost:
user: "1000:1000"
read_only: true
tmpfs:
- /tmp:noexec,nosuid,size=100m
Migration from Confluence/Notion
Docmost's API surface enables scripted migrations:
- Export Confluence spaces to HTML/XML
- Parse and transform to Docmost's page format
- Bulk-create via authenticated API requests
- Rebuild page hierarchies using parent references
Comparison with Alternatives
| Feature | Docmost | Confluence | Notion | Wiki.js |
|---|---|---|---|---|
| Self-hosted | ✅ Native | ❌ Cloud only | ❌ Cloud only | ✅ Yes |
| Real-time collaboration | ✅ Built-in | ✅ Yes | ✅ Yes | ❌ No |
| Open source | ✅ AGPL 3.0 | ❌ Proprietary | ❌ Proprietary | ✅ AGPL |
| Diagram support | ✅ Draw.io, Excalidraw, Mermaid | ✅ Limited | ✅ Basic | ⚠️ Plugin |
| Granular permissions | ✅ Spaces + Groups | ✅ Complex | ✅ Good | ⚠️ Basic |
| Price (10 users) | $0 | ~$600/year | ~$96/year | $0 |
| Data ownership | ✅ Complete | ❌ Atlassian's | ❌ Notion's | ✅ Complete |
| Embeds | ✅ Rich (Airtable, Loom, Miro) | ⚠️ Limited | ✅ Good | ⚠️ Basic |
| Page history | ✅ Full | ✅ Yes | ✅ Yes | ✅ Yes |
| Search quality | ✅ Good | ✅ Excellent | ✅ Good | ⚠️ Basic |
Docmost wins when: You need Confluence-level features with complete data control and zero licensing costs.
Choose alternatives when: You require managed SaaS convenience above all else, or need niche enterprise integrations only Confluence provides.
FAQ
Is Docmost truly free for commercial use?
Yes. The core platform under AGPL 3.0 permits commercial self-hosting without licensing fees. Enterprise features in /ee directories require separate licensing, but community edition functionality satisfies most teams.
How does real-time collaboration work technically?
Docmost implements operational transformation (or CRDTs) over WebSocket connections, ensuring concurrent edits merge correctly without server reconciliation delays.
Can I migrate from Confluence or Notion?
While no official importer exists yet, Docmost's API and database structure enable scripted migrations. Community tools are emerging; contribute your migration scripts back to the ecosystem.
What's the minimum server requirement?
2GB RAM runs small teams; 4GB+ recommended for 20+ active users. SSD storage dramatically improves search performance.
Is my data secure on Docmost?
More secure than SaaS alternatives—you control encryption, network access, and backup policies. No third-party AI training on your intellectual property.
How active is development?
Check GitHub commit history directly. The project shows consistent velocity with responsive maintainers merging community contributions.
Can I customize the UI for my brand?
Self-hosted deployment enables custom CSS injection and domain configuration. Enterprise licensing may unlock deeper white-labeling options.
Conclusion: Take Back Your Documentation
The documentation tool market has operated as a comfortable duopoly for too long. Confluence and Notion extracted monopoly rents while holding your team's knowledge hostage in proprietary formats. Docmost shatters this paradigm.
With real-time collaboration rivaling Google Docs, diagram support exceeding most competitors, and granular permissions satisfying enterprise security teams, Docmost delivers everything you actually need—without the recurring invoice anxiety.
The AGPL license isn't a trap; it's a promise. Your fork lives forever, independent of any company's business decisions. When that next "updated terms of service" email arrives from your current provider, you'll smile knowing your documentation escaped the plantation.
The migration cost is lower than you fear. The freedom gained is greater than you imagine.
Ready to deploy? Head to github.com/docmost/docmost, star the repository, and spin up your instance today. Your future self—reviewing page history during a calm, controlled incident response—will thank you.
Star Docmost on GitHub now → github.com/docmost/docmost