[{"data":1,"prerenderedAt":135},["ShallowReactive",2],{"seo-verification":3,"blog-how-to-self-host-docmost-on-a-vps-en":6},{"google":4,"bing":5},"EycwPY2XMyTkVzas3n1ygeNJFGAH513qrMjfDljzsMQ","",{"id":7,"slug":8,"slugs":9,"title":12,"excerpt":13,"readTime":14,"views":15,"isPinned":16,"publishedAt":17,"category":18,"categories":24,"featuredImage":26,"bgImage":27,"posterImage":28,"relatedSolution":29,"intro":32,"sections":33,"ctaTitle":81,"ctaBody":82,"ctaButton":83,"ctaUrl":84,"relatedPosts":85},148,"how-to-self-host-docmost-on-a-vps",{"fr":10,"en":8,"ar":11},"self-host-docmost-vps","كيفية-استضافة-docmost-ذاتيا-على-vps","How to Self-Host Docmost on a VPS","Deploy Docmost on your VPS for a self-hosted team wiki with real-time collaboration. Open-source Notion and Confluence alternative — Docker Compose in 15 minutes.",3,0,false,"2026-01-28T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},7,"Self-hosting","self-hosting","bg-indigo-500\u002F10 text-indigo-400","cloud",[25],{"id":19,"name":20,"slug":21,"color":22,"icon":23},null,"\u002Fblog\u002Fcovers\u002Fbg.svg","\u002Fblog\u002Fcovers\u002Fself-host-docmost-vps-poster.svg",{"categorySlug":30,"appSlug":31},"collaboration-productivity","docmost","Docmost is an open-source collaborative wiki designed for teams who want a Notion and Confluence alternative without per-seat pricing or data leaving their infrastructure. Real-time collaborative editing, built-in Mermaid and Draw.io diagrams, nested pages and full-text search — all running on three Docker containers. Here is how to deploy it on a VPS in under 15 minutes.",[34,38,49,52,74,78],{"type":35,"title":36,"body":37},"h2","Why self-host Docmost instead of Notion or Confluence","Notion and Confluence are convenient, but they come with tradeoffs that matter for developer teams: per-seat pricing that scales with headcount, docs living on a SaaS vendor's infrastructure, and export restrictions if you ever want to leave. Docmost runs on your own VPS — all pages, attachments and search indexes stay on your server. You control the backup policy, the retention rules and who gets access. For companies handling client data or internal technical documentation, this is not a minor detail.",{"type":39,"title":40,"items":41},"ul","What you get with a self-hosted Docmost instance",[42,43,44,45,46,47,48],"Real-time collaborative editing — multiple team members on the same page, zero conflicts, changes appear instantly.","Nested page tree with drag-and-drop reorganisation and unlimited depth.","Built-in Mermaid, Draw.io and Excalidraw blocks — no external plugins needed for diagrams.","Full-text search across all pages and file attachments.","Page history and diff — see exactly who changed what and roll back in one click.","Fine-grained permissions: workspace, group and per-page level access control.","Zero per-seat cost — pay only for your VPS.",{"type":35,"title":50,"body":51},"Requirements","You need a VPS with at least 2 GB RAM (4 GB for teams of 10+), Docker and Docker Compose installed, and a domain or subdomain pointing to your VPS IP. Docmost's stack is three containers: the app (Node.js), PostgreSQL 16 and Redis 7. On a modern 2 vCPU VPS you will comfortably serve 20-30 concurrent editors.",{"type":53,"title":54,"steps":55},"steps","Deploy Docmost on your VPS",[56,59,62,65,68,71],{"title":57,"body":58},"Install Docker","SSH into your VPS and run `curl -fsSL https:\u002F\u002Fget.docker.com | sh` to install Docker and the Compose plugin in one step. Verify with `docker compose version`.",{"title":60,"body":61},"Generate secrets","Run `openssl rand -hex 32` twice — once for `APP_SECRET`, once for `POSTGRES_PASSWORD`. Create `\u002Fopt\u002Fdocmost\u002F.env` with `APP_URL=https:\u002F\u002Fdocs.yourdomain.com`, `APP_SECRET=\u003Cvalue>`, `DATABASE_URL=postgresql:\u002F\u002Fdocmost:\u003Cpg-pw>@db\u002Fdocmost` and `REDIS_URL=redis:\u002F\u002Fredis:6379`.",{"title":63,"body":64},"Write docker-compose.yml","Create `\u002Fopt\u002Fdocmost\u002Fdocker-compose.yml` with three services: `docmost` (`docmost\u002Fdocmost:latest`, port `3000:3000`, env vars from `.env`), `db` (`postgres:16-alpine`, `POSTGRES_DB=docmost`, volume `docmost_db`) and `redis` (`redis:7-alpine`, `--appendonly yes`, volume `docmost_redis`). Then run `docker compose up -d`.",{"title":66,"body":67},"Set up reverse proxy and SSL","With Caddy (easiest): add `docs.yourdomain.com { reverse_proxy localhost:3000 }` to your Caddyfile and reload. With Nginx: `proxy_pass http:\u002F\u002F127.0.0.1:3000;` in a server block, then run Certbot. Update `APP_URL` in `.env` and restart: `docker compose restart docmost`.",{"title":69,"body":70},"Create your workspace","Open the URL in your browser, register the first admin account and name your workspace. Invite teammates from Settings -> Members by email. Start with a home page, then build your page tree — drag pages to reorganise at any time.",{"title":72,"body":73},"Logging in for the first time","Open the URL immediately after installation: Docmost displays its initial setup screen, where you create the workspace and the owner account (name, email, password). This first account has full rights.",{"type":75,"title":76,"body":77},"tip","Back up your volumes","All Docmost data lives in two Docker volumes: `docmost_db` (PostgreSQL) and `docmost_data` (attachments). Schedule a daily backup: `docker run --rm -v docmost_db:\u002Fdata -v \u002Fbackups:\u002Fout alpine tar czf \u002Fout\u002Fdocmost-$(date +%F).tar.gz \u002Fdata`. Store off-server for a complete disaster-recovery story.",{"type":75,"title":79,"body":80},"The official documentation","For advanced configuration and tool-specific options, refer to the \u003Ca href=\"https:\u002F\u002Fdocmost.com\u002Fdocs\" target=\"_blank\" rel=\"noopener noreferrer\">official Docmost documentation\u003C\u002Fa>. This guide covers going live on a VPS; the vendor documentation remains the reference for fine-tuning, major updates and specific use cases.","Host your team wiki on a VPS","Deploy Docmost on a ServOrbit VPS and keep your team's knowledge on your own infrastructure — no per-seat pricing, no vendor lock-in.","Deploy Docmost","\u002Fmarketplace\u002Fcollaboration-productivity\u002Fdocmost",[86,103,119],{"id":87,"slug":88,"slugs":89,"title":92,"excerpt":93,"readTime":94,"views":15,"isPinned":16,"publishedAt":95,"category":96,"categories":97,"featuredImage":26,"bgImage":27,"posterImage":99,"relatedSolution":100},74,"host-gitea-on-your-own-vps",{"fr":90,"en":88,"ar":91},"heberger-gitea","استضافة-gitea-على-خادم-vps-الخاص-بك","Host Gitea on your own VPS","Deploy Gitea on a VPS with Docker, reverse proxy and SSL. A lightweight, fast Git forge, 100% under your control.",4,"2026-04-07T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},[98],{"id":19,"name":20,"slug":21,"color":22,"icon":23},"\u002Fblog\u002Fcovers\u002Fheberger-gitea-poster.svg",{"categorySlug":101,"appSlug":102},"development","gitea",{"id":104,"slug":105,"slugs":106,"title":109,"excerpt":110,"readTime":94,"views":111,"isPinned":16,"publishedAt":112,"category":113,"categories":114,"featuredImage":26,"bgImage":27,"posterImage":116,"relatedSolution":117},76,"host-mattermost-on-your-own-vps",{"fr":107,"en":105,"ar":108},"heberger-mattermost","استضافة-mattermost-على-خادم-vps-الخاص-بك","Host Mattermost on your own VPS","Deploy Mattermost on your VPS with Docker, PostgreSQL and SSL. A private team messaging platform, the self-hosted alternative to Slack.",1,"2026-04-05T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},[115],{"id":19,"name":20,"slug":21,"color":22,"icon":23},"\u002Fblog\u002Fcovers\u002Fheberger-mattermost-poster.svg",{"categorySlug":21,"appSlug":118},"mattermost",{"id":120,"slug":121,"slugs":122,"title":125,"excerpt":126,"readTime":94,"views":15,"isPinned":16,"publishedAt":127,"category":128,"categories":129,"featuredImage":26,"bgImage":27,"posterImage":131,"relatedSolution":132},134,"self-host-twenty-crm-on-vps-open-source-salesforce-alternative",{"fr":123,"en":121,"ar":124},"self-host-twenty-crm-vps","استضف-twenty-crm-بنفسك-على-vps-بديل-salesforce-مفتوح-المصدر","Self-Host Twenty CRM on VPS: Open Source Salesforce Alternative","Deploy Twenty CRM on a ServOrbit VPS — open-source Salesforce alternative with custom objects, GraphQL API and automation worker. AGPL-3.0, production-ready since v2.1.0.","2026-02-13T00:00:00+00:00",{"id":19,"name":20,"slug":21,"color":22,"icon":23},[130],{"id":19,"name":20,"slug":21,"color":22,"icon":23},"\u002Fblog\u002Fcovers\u002Fself-host-twenty-crm-vps-poster.svg",{"categorySlug":133,"appSlug":134},"erp-business-management","twenty",1787581005732]