Quick Answer: Best VPS for n8n
The best VPS for n8n in 2026, in one paragraph
The best VPS for self-hosting n8n is a 4 vCPU / 8 GB RAM server, which comfortably runs production workflows with Postgres. n8n's official Docker Compose setup needs at least 4 GB RAM and 2 vCPUs. At the budget end, Contabo's Cloud VPS 4 (4 vCPU, 8 GB RAM, 100 GB SSD) starts around $5/month and is enough for most businesses; at the premium end, Hetzner and DigitalOcean offer rock-solid options in the $8–16/month range with better support and snapshots.
Sources: n8n official docs, Contabo VPS pricing (accessed August 26, 2026).
Why self-host n8n at all?
n8n Cloud is priced per user and adds up fast once you have a team or several client workflows running. Self-hosting flips that: you pay one VPS bill and run unlimited workflows on it. You also own the data, which matters for Nigerian businesses under NDPR and for anyone routing client data through automation.
The trade-off is real. Nobody patches your server, runs your backups, or watches your uptime for you. That's the part most "cheap VPS" guides skip. A $5 VPS that nobody maintains will eventually break at the worst moment — usually while a client workflow is mid-run.
We've seen this pattern enough times that we wrote it into our VPS setup and management service: hardened install, Postgres from day one, automated off-server backups, weekly updates, and uptime alerts. The cost is a one-time setup fee plus a small monthly management retainer — less than the hours you'd spend fighting a broken server at midnight.
Minimum specs: what n8n actually needs
n8n's own documentation is clear: the Docker Compose setup requires at least 4 GB RAM and 2 vCPUs. That's the floor, not the comfortable zone. Three things push you above the floor:
- Postgres, not SQLite. n8n docs say SQLite is fine for trying things out, but Postgres is recommended for production. Postgres adds maybe 300–500 MB of RAM on top of n8n.
- Heavy AI steps. LLM nodes, embeddings, and document processing are memory-hungry. An 8 GB box handles them; 4 GB gets tight.
- Concurrent workflows. A few workflows at once is nothing. Twenty workflows with webhooks firing together need headroom.
If you're unsure, 8 GB RAM is the sweet spot. It runs n8n, Postgres, and a few AI steps without you thinking about memory again.
VPS comparison: what $5–$20/month buys in 2026
| Provider | Specs | Price (approx.) | Best for |
|---|---|---|---|
| Contabo Cloud VPS 4 | 4 vCPU / 8 GB / 100 GB SSD | ~$5–6/mo | Best value; most n8n setups |
| Hetzner CX22 | 2 vCPU / 4 GB / 40 GB | ~$5/mo | Budget n8n, light workflows |
| DigitalOcean Basic | 2 vCPU / 4 GB / 60 GB | ~$18–24/mo | Managed snapshots, easy UI |
| Hetzner CX32 | 4 vCPU / 8 GB / 80 GB | ~$9–11/mo | 8 GB sweet spot, best price |
| Contabo Cloud VPS 6 | 6 vCPU / 16 GB / 200 GB SSD | ~$10–12/mo | Heavy AI workflows, many clients |
Prices are approximate as of August 2026 and vary by region and promo periods. Verify current pricing on each provider's site.
The $5 VPS trap
The cheapest VPS you can find will run n8n. The question is whether it runs it reliably. Here's what breaks on unmanaged budget boxes:
- No backups. One bad update and your workflows are gone. You need off-server backups, scheduled.
- Stale updates. n8n ships weekly. Skip three months of updates and you're fighting a migration you didn't plan.
- Ports left open. n8n docs are blunt: the sandbox runner should be treated as root on the host. Only port 5678 should be open.
- No monitoring. A workflow silently failing for a week is worse than no workflow at all.
This is exactly what our VPS setup and management service handles: hardened install, Postgres from day one, backups, updates, and uptime monitoring. From $150 one-time, 3–7 day delivery, and you own the server.
How to start: a 6-step n8n self-hosting plan
- Pick the VPS. Start with 8 GB RAM. If you're cost-sensitive, cheap n8n VPS hosting from a budget provider is fine for a first run — just plan the maintenance.
- Point your domain at the server and secure SSH (keys only, no password login).
- Install Docker and run n8n via Docker Compose with Postgres, not SQLite.
- Lock it down. Only port 5678 open; put n8n behind a reverse proxy with HTTPS.
- Set up backups to off-server storage before you load real workflows.
- Add monitoring so you know when n8n goes down instead of finding out from a client.
If that list feels like a project, it is — a one-time one. We do exactly this for clients, and the result is a set-and-forget n8n instance with backups and monitoring already wired in. See how we build n8n automations, or get the server set up for you.
Nigerian businesses: what to budget in naira
For Nigerian businesses, the numbers change but the logic doesn't. At ₦1,500–₦1,650 per dollar, a $6/month VPS is roughly ₦9,000–₦10,000 monthly — less than one day's delivery rider fees for most e-commerce stores. Compare that to a single n8n Cloud seat at $24/month (about ₦36,000–₦40,000) and self-hosting starts to look like the obvious call for anyone running more than a couple of workflows.
The real cost for most Nigerian businesses isn't the VPS — it's the setup. A server that arrives unhardened, running SQLite, with port 22 open to the world is a liability, not an asset. Factor in the cost of getting it done right: either the hours you spend learning Docker, or a one-time setup fee from a team that's done it a hundred times. We charge from $150 (₦225K) for a hardened n8n deployment on your VPS, and most are live within 3–7 days.
How we deploy n8n for clients
When we set up n8n on a client's VPS, the playbook is consistent:
- Hardened server baseline — SSH keys only, fail2ban, firewall rules that expose just what's needed.
- Docker Compose with Postgres — not SQLite. Postgres is what n8n's own docs recommend for production.
- Reverse proxy with HTTPS — n8n sits behind Caddy or Nginx with automatic certificates, so the editor runs over a secure subdomain.
- Encrypted off-server backups — scheduled to object storage, not just a folder on the same disk.
- Uptime monitoring — we get alerted before you do, so a workflow that dies at 2am gets restarted while you sleep.
The output is a URL you log into, a database that's backed up, and a system that tells you when it's unhappy. If you'd rather spend your week building automations than babysitting a server, message us and we'll take it from there.
This post contains affiliate links — we may earn a commission at no extra cost to you.
Best VPS for n8n FAQ
What is the best VPS for n8n?
A 4 vCPU / 8 GB RAM VPS is the best starting point for n8n production. Contabo's Cloud VPS 4 (4 vCPU, 8 GB RAM, 100 GB SSD) starts around $5/month — more than enough for most workflows.
What are the minimum specs to self-host n8n?
n8n's official Docker Compose setup requires at least 4 GB RAM and 2 vCPUs. Use Postgres instead of SQLite for production, and keep port 5678 the only open port.
Can I run n8n on a cheap VPS?
Yes. A 4 GB / 2 vCPU VPS around $5–6/month runs n8n fine for light-to-medium workflows. Budget 8 GB RAM if you run many workflows or heavy AI steps.
Is self-hosting n8n cheaper than n8n Cloud?
Usually yes. n8n Cloud starts around $24/month per user, while a VPS for the same workloads is $5–10/month. Self-hosting means you manage updates, backups, and uptime yourself.
Should I use Postgres or SQLite with n8n?
Use Postgres for anything beyond testing. n8n's own docs say SQLite is fine for trying things out, but Postgres is recommended for production.
Get n8n self-hosted without the headache
We set up n8n on your VPS — hardened, with Postgres, backups, and monitoring. From $150 (₦225K), delivered in 3–7 days. You keep the server.