DEV Community

Sanghun Yun
Sanghun Yun

Posted on Edited on Originally published at gearflowlab.com

Best Cloud VPS for Self-Hosting Docker & Automation in 2026: DigitalOcean vs Hetzner vs AWS Lightsail

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 16 backends plus Node.js webhook workers quickly exhaust 1 GB instances without explicit container mem_limit budgets and transaction pooling.
  • 32-Character Key Lock: Moving database.sqlite or 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:5678 exposes n8n on public eth0 via netfilter PREROUTING unless bound strictly to 127.0.0.1:5678:5678.

Full VPS Cutover Guide, Compose Stack & RAM Calculator

Top comments (0)