n8n Self-Hosted 2026: Complete Docker & VPS Setup Guide

Self-host n8n on a VPS with Docker: step-by-step setup, SSL, backups, and choosing a provider (Hetzner, DigitalOcean, Contabo).

Quick Answer

Self-hosting n8n means running the open-source workflow automation platform n8n on your own VPS with Docker instead of paying for n8n Cloud. A small VPS usually costs less than n8n Cloud's paid plans and gives unlimited workflows, unlimited executions and complete data control; in exchange you own updates, backups and security.

  • The VPS providers recommended for self-hosted n8n are Hetzner, Contabo, DigitalOcean and Vultr. Hetzner offers EU servers and suits GDPR-sensitive data, Contabo is strong on value, DigitalOcean has extensive documentation, and Vultr offers hourly billing. Check current plans on each provider's pricing page.
  • A self-hosted n8n install runs on Docker behind Nginx with SSL from Certbot. The setup is: update the server, install Docker with the get-docker.sh script and the docker-compose-plugin, then create a docker-compose.yml that runs n8n, Nginx and Certbot, which issues free SSL certificates with automatic renewal.
  • Self-hosted n8n needs daily backups and a WEBHOOK_URL that matches the domain. Automated cron backups should keep the last 7 copies locally and optionally sync to cloud storage; broken webhooks usually mean WEBHOOK_URL does not match the domain, permission errors are fixed with sudo chown -R 1000:1000 n8n_data, and high memory use is capped with NODE_OPTIONS=--max-old-space-size=512.

Why Self-Host n8n in 2026?

n8n has become the go-to open-source workflow automation platform, but the cloud pricing can add up quickly as executions grow. Self-hosting n8n gives you unlimited workflows, unlimited executions, and complete data control, for the cost of a small VPS plus your own time to maintain it.

Self-Hosted vs Cloud: How to Compare

Compare a VPS plan sized for your workload with the n8n Cloud plan that covers your monthly executions, using the current prices on both pricing pages. Add the hours you will spend on updates, backups and monitoring: for a small team that time is the real cost of self-hosting.

Recommended VPS Providers

  • Hetzner (recommended): EU servers, GDPR compliant
  • DigitalOcean: Excellent documentation
  • Contabo: Great value for money
  • Vultr: Hourly billing option

Step 1: Initial Server Setup

SSH into your VPS and run:

# Update system
sudo apt update && sudo apt upgrade -y

# Install Docker
curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh

# Install Docker Compose
sudo apt install docker-compose-plugin -y

Step 2: Docker Compose Configuration

Create docker-compose.yml with n8n, Nginx, and Certbot for SSL.

Step 3: SSL Certificate Setup

Use Let's Encrypt for free SSL certificates with automatic renewal.

Backup Strategy

Create automated daily backups with cron jobs. Keep last 7 backups locally and optionally sync to cloud storage.

Troubleshooting

  • Webhooks not working? Check WEBHOOK_URL matches your domain
  • Permission errors? Run: sudo chown -R 1000:1000 n8n_data
  • High memory? Add NODE_OPTIONS=--max-old-space-size=512

Need Help Setting Up?

SUPALABS offers managed n8n setup and automation consulting for businesses.

Key statistics (2025)

30%productivity increase with workflow automationZapier 2025
50%reduction in manual tasksMake.com 2025
20hrs/weekaverage time saved per employeeMonday.com 2025
400%ROI from workflow automationForrester 2025
88%of organizations using AI in at least one functionMcKinsey 2025
62%experimenting with AI agentsMcKinsey 2025

Further reading

Frequently asked questions

Automation18 min2025-01-15

Share this article

Mike Cecconello

Mike Cecconello

Founder, SUPALABS

Founder of SUPALABS, an embedded AI operator for European companies. Works inside client organisations to rebuild how work runs — designing and shipping production AI systems across finance, operations, HR and customer support, then handing ownership to the client's own team.

Experience

5+ years building AI and automation systems for European companies

Expertise
  • AI-Native Process Redesign
  • Production AI Systems
  • Embedded Delivery
  • Enterprise AI Strategy
Supalabs AI solutions