Comparisons · Knowledge Bases & Wikis · 2026-11-25
AFFiNE vs Docmost: Measured RAM (271.7 vs 372.7 MB) & Docker Ops
Verified Docker Compose comparison of AFFiNE (271.7 MB) and Docmost (372.7 MB): Postgres+Redis breakdowns, migration jobs, whiteboards, and VPS sizing.
AFFiNE
toeverything/AFFiNE- Idle RAM
- 271.7 MB
- Containers
- 4
- Startup
- 87.5 s
- VPS tier
- 1 GB VPS
- affine
204.8 MB - postgres
63.0 MB - redis
4.0 MB
AFFiNE and Docmost are two of the strongest modern self-hosted alternatives to Notion. Both run a Node.js backend paired with PostgreSQL and Redis for real-time WebSocket collaboration, so on paper their resource profiles look nearly identical.
In our verified Docker Compose runs, AFFiNE idled at 271.7 MB while Docmost idled at 372.7 MB — a 101.0 MB (1.4×) gap that happens to split them across two VPS sizing tiers. AFFiNE stays under our 350 MB ceiling for a 1 GB VPS, while Docmost crosses into the 2 GB VPS tier.
Where the 101.0 MB RAM gap comes from
Both stacks carry PostgreSQL and Redis, so the container breakdown shows where the extra memory actually lands:
- AFFiNE (271.7 MB total across 3 steady-state containers + 1 one-shot migration job) splits into
affine(ghcr.io/toeverything/affine:stable) at 204.8 MB (75.4%),postgres(pgvector/pgvector:pg16) at 63.0 MB (23.2%), andredis(redis:7-alpine) at 4.0 MB (1.5%). A fourth service,affine_migration, runsnode ./scripts/self-host-predeploy.jsand exits0before the server starts. - Docmost (372.7 MB total across 3 containers) splits into
docmost(docmost/docmost:latest, NestJS + React) at 301.8 MB (81.0%),db(postgres:18) at 56.2 MB (15.1%), andredis(redis:8with AOF enabled) at 14.6 MB (3.9%).
Even though AFFiNE’s pgvector/pgvector:pg16 database container uses 6.8 MB more idle memory than Docmost’s postgres:18 (63.0 MB vs 56.2 MB), Docmost’s NestJS application container consumes 97.0 MB more than AFFiNE’s Node.js server (301.8 MB vs 204.8 MB), and redis:8 adds another 10.6 MB over redis:7-alpine.
If you want a pure documentation wiki without Redis at all, see our Wiki.js vs Docmost comparison — Wiki.js idled at 128.4 MB across two containers.
Day-2 operations: migrations, secrets, and signup hardening
While AFFiNE uses less idle memory, Docmost has a slightly simpler container topology and cleaner first-run access control.
| Operational factor | AFFiNE | Docmost |
|---|---|---|
| Containers in Compose | 4 defined (3 running: affine, postgres, redis + 1 one-shot affine_migration) |
3 running (docmost, db, redis) |
| Measured idle RAM | 271.7 MB | 372.7 MB |
| Startup time (incl. pull) | 87.5 s (HTTP 302) |
63.7 s (HTTP 200) |
| Container / host port | 3010 (127.0.0.1:3010:3010) |
3000 (127.0.0.1:3000:3000) |
| Database & cache images | pgvector/pgvector:pg16 + redis:7-alpine |
postgres:18 + redis:8 (--appendonly yes, noeviction) |
| Schema migrations | Explicit affine_migration predeploy container (service_completed_successfully) |
Automatic inside docmost on startup |
| Named volumes | 4 (affine_storage, affine_config, postgres_data, redis_data) |
3 (docmost, db_data, redis_data) |
| Required secrets & URL env | DB_PASSWORD, AFFINE_SERVER_HOST, AFFINE_SERVER_HTTPS |
APP_SECRET (32+ chars), DB_PASSWORD, APP_URL |
| Closing open signups | First user is admin; CE has no env toggle — restrict signup route at reverse proxy if needed | First user is workspace owner; disable open registration in UI and invite members |
| Backup workflow | pg_dump + archive AFFiNE storage/config volumes |
pg_dump + archive docmost storage volume |
Two maintenance details stand out:
- Migrations on upgrade: AFFiNE makes migrations explicit via
affine_migration, which gives clear exit-code visibility during upgrades (depends_on: condition: service_completed_successfully), while Docmost runs migrations automatically on boot — so skipping major versions or downgrading Docmost without a verifiedpg_dumpcan break schema compatibility. - Proxy WebSockets and upload limits: Both require WebSocket
Upgrade/Connectionforwarding (Caddy handles this automatically; Nginx needs explicit headers) and raised upload limits (client_max_body_size 100mfor AFFiNE,50mmatchingFILE_UPLOAD_SIZE_LIMITfor Docmost).
Product scope: unified doc + whiteboard canvas vs. structured team wiki
The two apps solve adjacent but distinct workflows:
- AFFiNE blends documents, Miro-style infinite whiteboards (edgeless canvas), and structured tables into a single local-first workspace under the MIT Community Edition license. It fits solo builders and small groups who brainstorm visually alongside written notes.
- Docmost focuses tightly on Confluence/Notion-style team documentation: hierarchical spaces, granular workspace permissions, inline comments, configurable page history (
PAGE_HISTORY_INTERVAL), and embedded diagrams (Draw.io, Excalidraw, Mermaid).
VPS sizing and co-hosting impact
- On a 1 GB VPS: AFFiNE (271.7 MB idle) fits inside our 1 GB VPS tier alongside a lightweight reverse proxy like Caddy (~10–15 MB) and a small utility such as Vaultwarden (7.1 MB), leaving ~650–700 MB for Linux and active editing spikes. Docmost (372.7 MB idle) crosses our 350 MB 1 GB guideline; running it on 1 GB leaves tight margin once Postgres, Redis AOF, and concurrent editors ramp up.
- On a 2 GB VPS: Both run comfortably with generous headroom for attachments, search, and collaboration, or alongside other services from our 2 GB VPS sizing guide.
Check the full measured RAM leaderboard to see how both stack up against Wiki.js (128.4 MB) and Memos (18.5 MB).
Which one should you self-host?
Choose AFFiNE if:
- You want a Notion + Miro hybrid with freeform whiteboards and a local-first workspace under the MIT license.
- You want to stay on a 1 GB VPS — its 271.7 MB idle footprint saves 101.0 MB over Docmost.
- You prefer explicit pre-deploy migration jobs (
affine_migration) before the app container starts. - Ready to deploy? Follow our AFFiNE Docker Compose guide.
Choose Docmost if:
- You want a dedicated team wiki with structured spaces, member permissions, page history, and built-in Draw.io/Excalidraw/Mermaid diagrams.
- You want simple 3-container Compose operations with built-in UI controls to disable public signups after onboarding.
- You have a 2 GB+ VPS where 372.7 MB idle RAM leaves plenty of headroom.
- Ready to deploy? Follow our Docmost Docker Compose guide.