Choosing a $4–$6 Linux VPS for self-hosted Docker automation (n8n, PostgreSQL, and a TLS reverse proxy) rarely fails on CPU speed. In production migrations off local Windows 11 WSL2 workstations, small cloud instances fail on unpooled memory spikes (OOMKilled Exit 137), exposed Docker bridge ports, and broken credential decryption during cutover.
Lab Migration & VPS Sizing Findings (Docker 27.3.1 + n8n 1.76.1)
-
RAM Headroom Reality: Unpooled
PostgreSQL 16backends plus Node.js webhook workers quickly exhaust 1 GB instances without explicit containermem_limitbudgets and transaction pooling. -
32-Character Key Lock: Moving
database.sqliteor Postgres dumps without preserving/home/node/.n8n/config(N8N_ENCRYPTION_KEY) breaks every saved OAuth token on first boot. -
UFW Firewall Bypass: Publishing
-p 5678:5678exposes n8n on publiceth0via netfilterPREROUTINGunless bound strictly to127.0.0.1:5678:5678.
Full VPS Cutover Guide, Compose Stack & RAM Calculator
-
Canonical Lab Guide (
docker-compose.yml+ Droplet checklist + encryption key transfer): Move Docker n8n to a Linux VPS Without Losing Credentials - Free Interactive Tool: PostgreSQL & PgBouncer Memory Pool Calculator
Top comments (0)