Lite vs Standard Architecture
How Synora adapts its storage engine and Docker resource caps to fit both 1 GB RAM VPS instances and multi-core servers.
Shared API Layer
Both Lite Mode and Standard Mode build and run the exact same Fastify 5 + WebSocket server from server/Dockerfile (node:22-alpine, running as non-root user node, listening internally on port 3000). The Obsidian plugin does not know or care which backend driver is active.
| Attribute | Lite Mode | Standard Mode |
|---|---|---|
| Compose file | deployment/lite/docker-compose.yml |
deployment/standard/docker-compose.yml |
| Target VPS spec | 1 GB RAM / 1 vCPU | 2+ GB RAM / 2+ vCPU |
| Database driver | sqlite (Node.js built-in node:sqlite, WAL mode) |
couchdb (couchdb:3.4) |
| Docker network | synora-lite (bridge) |
synora-standard (bridge; port 5984 internal only) |
| Resource limits | api: 384m RAM, 0.75 CPU, --max-old-space-size=256; cloudflared: 128m |
No artificial container memory caps; full headroom for CouchDB + API |
| HTTPS profiles | quick, named |
quick, named, caddy |
| Data path | deployment/lite/data/api (SQLite DB + blobs) |
deployment/standard/data/api + data/couchdb |
Environment Variables
installer/install.sh writes environment variables with umask 077 and file permissions 0600.
Lite Mode (deployment/lite/.env)
COMPOSE_PROFILES=quick
SYNORA_MODE=lite
SYNORA_API_KEY=<64-hex-chars>
CLOUDFLARE_TUNNEL_TOKEN=
SYNORA_DOMAIN=
Standard Mode (deployment/standard/.env)
COMPOSE_PROFILES=quick
SYNORA_MODE=standard
SYNORA_API_KEY=<64-hex-chars>
COUCHDB_USER=synora
COUCHDB_PASSWORD=<48-hex-chars>
COUCHDB_DB=synora_meta
CLOUDFLARE_TUNNEL_TOKEN=
SYNORA_DOMAIN=
ACME_EMAIL=
Choosing a Mode
- Choose Lite Mode for single-user or small-team vaults on low-cost 1 GB RAM / 1 vCPU VPS instances, or when you want minimal disk and RAM overhead with SQLite.
- Choose Standard Mode if your VPS has 2+ GB RAM and 2+ vCPU, you have larger vaults or more concurrent devices, or you want direct Caddy HTTPS without Cloudflare Tunnel.
You can start on Lite Mode and migrate to Standard Mode anytime using Lite to Standard Upgrade.