Best VPS for n8n in 2026: Specs, Providers, and a Setup That Just Works

n8n doesn't need a big box — but it does need enough RAM and a host that doesn't oversell its nodes. Here's how to pick, and how to deploy.

Short version: a 1–2 GB VPS runs n8n comfortably for personal workflows; go to 2 GB or 4 GB if you're running queues, longer workflows, or heavy integrations alongside it. Pick a provider that gives you honest RAM and CPU — not the cheapest sticker price on an oversold node.

What n8n actually needs

n8n is a Node.js app running inside Docker. A single worker doing a few hundred executions a day is light. What eats RAM is the workflow runtime, the database (SQLite by default, Postgres for production), and any heavy community nodes. Rule of thumb:

Use caseRAMCPU
Personal automation, a few workflows1–2 GB1 vCPU
Scheduled jobs + webhooks + a few integrations2 GB2 vCPU
Queue mode, many workflows, production uptime4 GB2 vCPU

Most self-hosters in r/n8n run comfortably on 2 GB. Don't over-buy: n8n scales down, and a 1 GB box is genuinely enough to start.

What matters in a host (for n8n)

Best providers for n8n in 2026

Hetzner Cloud CX22 (2 GB / 2 vCPU, ~$4.29/mo). The specs-per-dollar leader, and n8n runs comfortably here. NVMe-backed, no phone support, and signup can be fussier for some regions. We don't earn on this link — Hetzner closed its referral program — it's just the best value we found.
Check Hetzner pricing →
Vultr (from $6/mo, 1 GB). Rock-solid uptime, global regions, and fast snapshot restore. One of the easiest hosts to deploy an n8n stack on and forget about.
Deploy n8n on Vultr →
Affiliate disclosure: if you sign up through this link we may earn a commission. It doesn't change our recommendation.
DigitalOcean (from $4/mo, 512 MB; $6/mo, 1 GB). The n8n 1-Click App on the Marketplace makes this the easiest path for beginners, and DO's docs are excellent. For n8n specifically, use the 2 GB droplet ($12/mo) so the app + SQLite have headroom.
Get $25 credit on DigitalOcean →
Affiliate disclosure: if you sign up through this link we may earn a commission. It doesn't change our recommendation.
RackNerd (from $1.5/mo, 1 GB). The cheapest way to run n8n for a hobby. Read the fine print — budget hosts are likelier to oversell nodes, so keep anything you depend on off the bottom tier. Fine for playing around.
Affiliate disclosure: if you sign up through this link we may earn a commission. It doesn't change our ranking.

Docker Compose setup that just works

This is the setup I run — Caddy in front for automatic HTTPS, n8n bound to localhost only, and SQLite. Expose nothing to the internet directly except port 80/443 through the proxy.

services:
  n8n:
    image: n8nio/n8n
    restart: unless-stopped
    environment:
      - N8N_BASIC_AUTH_ACTIVE=true
      - N8N_BASIC_AUTH_USER=admin
      - N8N_BASIC_AUTH_PASSWORD=CHANGE_ME
      - N8N_HOST=n8n.yourdomain.com
      - N8N_PROTOCOL=https
      - N8N_PORT=5678
    ports:
      - "127.0.0.1:5678:5678"
    volumes:
      - ./n8n:/home/node/.n8n

  caddy:
    image: caddy:latest
    restart: unless-stopped
    ports:
      - "80:80"
      - "443:443"
    volumes:
      - ./Caddyfile:/etc/caddy/Caddyfile
      - caddy_data:/data
    depends_on:
      - n8n

Caddyfile:

n8n.yourdomain.com {
    reverse_proxy n8n:5678
}

That's it — Caddy issues the TLS cert automatically on first boot, and n8n is reachable only at your domain over HTTPS.

The setup steps in one pass

  1. Create the VPS (2 GB recommended) with Docker preinstalled or install it.
  2. Put the compose.yaml above in a folder, set your domain + password.
  3. docker compose up -d, point your DNS A record at the box.
  4. Enable backups: snapshot daily via your provider's API, or rsync ./n8n off-box nightly.

Your ./n8n folder holds all your workflows and credentials. Back it up daily — restore-from-snapshot is your recovery plan. n8n has no cloud lock-in; the whole point of self-hosting is that the data and the workflows are yours.

Don't overthink the box

n8n self-hosting is the single best value in the automation space right now. The pitfall most people hit isn't the software — it's signing up with a host that oversells RAM and then wondering why the workflow runner crawls. A straight-spec cheap VPS avoids that entirely.

See the full cheap VPS comparison →

If you buy through a sponsored link on this page, we may earn a commission. It never changes what we recommend.