Storage & ProductivitySave ~$876/yr vs Notion + Miro Team
Self-Hosting AFFiNE on a VPS (2026): Open-Source Notion + Miro RAM & Cost
AFFiNE pairs a Rust/Node sync backend with pgvector and Redis (~1.3 GB idle, ~3.2 GB under collaboration). Deploy on Hostinger KVM 2 (8 GB, ~$7.03/mo with XF3PLUTARXVF) for snappy real-time canvas sync.

RATE SHEET
November 22, 2026Hardware Spec & Verified Rate Sheet: AFFiNE
| Provider / Tier | Hardware & Architecture | List | Net Benefit | Code | Link |
|---|---|---|---|---|---|
Hostinger KVM 2 Recommended for AFFiNE | 2 vCPU AMD EPYC · 8 GB DDR5 · 100 GB NVMe · 8 TB | $8.79/mo | ~$7.03/mo (-20%) | Claim -20% | |
Proton (VPN & Privacy) WireGuard + VPS Privacy | Gluetun WireGuard + NAT-PMP · Swiss No-Logs · Mail/Drive/Pass | Subscription | $20 USD credit | Claim $20 |
01 Open the link to bind XF3PLUTARXVF (-20%) or 5AA9X0DA ($20 USD).02 Pick 12/24-mo KVM VPS or Proton Plus/Unlimited.03 Deploy Ubuntu 24.04 + Docker + WireGuard tunnel.
01 / HARDWARE TELEMETRY
Measured RAM, vCPU & NVMe Profile for AFFiNE
Min → Rec RAM
4 GB → 8 GB
Idle 1350 MB · Peak 3200 MB
Min → Rec vCPU
2 → 2 vCPU
AMD EPYC / High-Clock
Min → Rec NVMe
40 → 100 GB
PCIe Gen4 NVMe SSD
Primary Bottleneck
CRDT document compaction + pgvector semantic search memory
Projected Memory Footprint on Hostinger KVM 2 (8 GB RAM)Idle 16% · Peak 39% · Headroom 61%
02 / DOCKER COMPOSE & SHELL
Docker Stack SizerProduction Deployment Stack (AFFiNE)
docker-compose.ymlyaml
services:
affine:
image: ghcr.io/toeverything/affine-graphql:stable
restart: unless-stopped
ports:
- "127.0.0.1:3010:3010"
depends_on:
- redis
- postgres
environment:
REDIS_SERVER_HOST: redis
DATABASE_URL: postgres://affine:${DB_PASSWORD}@postgres:5432/affine
AFFINE_SERVER_EXTERNAL_URL: https://workspace.${BASE_DOMAIN}
volumes:
- affine_storage:/root/.affine/storage
- affine_config:/root/.affine/config
deploy:
resources:
limits:
memory: 3G
redis:
image: redis:7-alpine
restart: unless-stopped
postgres:
image: pgvector/pgvector:pg16
restart: unless-stopped
environment:
POSTGRES_USER: affine
POSTGRES_PASSWORD: ${DB_PASSWORD}
POSTGRES_DB: affine
volumes:
- pg_data:/var/lib/postgresql/data
volumes:
affine_storage:
affine_config:
pg_data:deploy-and-verify.shbash
mkdir -p /opt/affine && cd /opt/affine
printf "DB_PASSWORD=%s\nBASE_DOMAIN=yourdomain.com\n" "$(openssl rand -hex 24)" > .env
docker compose up -d03 / PRODUCTION FIELD NOTES
Critical Operational Insights
Always pin the `pgvector/pgvector:pg16` image rather than vanilla Postgres so AFFiNE's indexing migrations succeed.
04 / SECURITY & PRIVACY
UFW Firewall, TLS & WireGuard / ProtonVPN Hardening
Disable open user sign-ups in AFFiNE's admin panel once your team registers and place it behind TLS 1.3 with WebSocket upgrade headers enabled.
Isolate container egress with ProtonVPN WireGuard + Proton Suite (US$20 in credits · code
5AA9X0DA).Claim US$20 on Proton05 / VERIFIED DEPLOYMENT STACK
Deploy on Verified Infrastructure
KVM COMPUTE · EXTRA −20%
Hostinger KVM 2
~$7.03/mo
$8.79/mo
vCPU
2 EPYC
RAM
8 GB
NVMe
100 GB
24m Save
~$42
Renew: $12.99/mo · Free backups
SWISS PRIVACY · ACCOUNT CREDIT
Proton VPN & Unlimited
US$20
in credits
Tunnel
WireGuard
Docker
Gluetun + NAT
Suite
VPN·Mail·Drive
pr.tn/ref/5AA9X0DA
Frequently Asked Questions
AFFiNE vs Outline Wiki?
Pick Outline for pure fast company wikis (<1 GB RAM); pick AFFiNE if you also need local-first whiteboards (Miro/Excalidraw style) integrated with docs.


