\n\n \n

How to Self-Host n8n on a VPS in 2026: The Complete Beginner Guide

Learn how to self-host n8n on a VPS step by step — no developer skills required — and take full control of your workflow automation for free.

← All Articles
🇬🇧 English

This article contains affiliate links. If you buy through them, we may earn a commission at no extra cost to you.

Why Self-Host n8n in 2026?

If you are running a small or medium business and want to automate repetitive tasks — sending invoices, syncing customer data, posting to social media — you need a reliable automation tool that you actually control. Self-hosting n8n gives you 400+ integrations, unlimited workflows, and zero monthly per-task fees. You own the server, you own the data.

The alternative is paying for a cloud plan that charges per execution. For growing businesses, those costs add up fast. A self-hosted setup on a cheap VPS can cost as little as €5–€10 per month while handling thousands of automations.

What You Need Before You Start

  • A VPS with at least 1 GB RAM and 20 GB storage (Ubuntu 22.04 or 24.04 recommended)
  • A domain name pointed to your server's IP address
  • Basic comfort with a terminal — you do not need to be a developer

For the VPS itself, Hostinger offers a one-click n8n template that pre-installs everything for you, which is a huge time-saver if this is your first server.

Step 1: Connect to Your VPS

Once your VPS is provisioned, connect via SSH from your computer:

ssh root@YOUR_SERVER_IP

If you are on Windows, use PuTTY or Windows Terminal. On Mac and Linux, the command above works directly in your terminal.

Step 2: Install Docker and Docker Compose

n8n runs best inside Docker, which packages it with all its dependencies. Run the following commands one by one:

  • apt update && apt upgrade -y
  • apt install docker.io docker-compose -y
  • systemctl enable docker && systemctl start docker

Docker is now running on your server. Think of it as a clean container that keeps n8n isolated from everything else on your machine.

Step 3: Create Your n8n Docker Compose File

Create a new folder and a configuration file:

  • mkdir ~/n8n && cd ~/n8n
  • nano docker-compose.yml

Paste the following into the file:

version: 
🇩🇪 Deutsch

Dieser Artikel enthält Affiliate-Links (Werbung). Kaufst du darüber, erhalten wir ggf. eine Provision – für dich ohne Mehrkosten.

Warum n8n 2026 selbst hosten?

Wenn du ein kleines oder mittelständisches Unternehmen führst und wiederkehrende Aufgaben automatisieren möchtest – Rechnungen versenden, Kundendaten synchronisieren, Social-Media-Beiträge planen – brauchst du ein zuverlässiges Automatisierungstool, das du wirklich kontrollierst. Wer n8n selbst hostet, bekommt 400+ Integrationen, unbegrenzte Workflows und keine monatlichen Kosten pro Ausführung. Du verwaltest den Server, du besitzt die Daten.

Die Alternative sind Cloud-Pläne, die pro Ausführung abrechnen. Für wachsende Unternehmen summieren sich diese Kosten schnell. Ein selbst gehostetes Setup auf einem günstigen VPS kostet oft nur 5–10 € pro Monat und verarbeitet dabei Tausende von Automatisierungen.

Was du vorher brauchst

  • Einen VPS mit mindestens 1 GB RAM und 20 GB Speicher (Ubuntu 22.04 oder 24.04 empfohlen)
  • Einen Domain-Namen, der auf die IP-Adresse deines Servers zeigt
  • Grundlegendes Comfort im Umgang mit einem Terminal – Entwicklerkenntnisse sind nicht nötig

Für den VPS selbst bietet Hostinger ein One-Click-n8n-Template, das alles für dich vorinstalliert – ein großer Zeitvorteil, wenn du zum ersten Mal einen Server einrichtest. Wer Wert auf deutsche Server und DSGVO-Konformität legt, kann alternativ netcup nutzen, einen deutschen Hosting-Anbieter mit Rechenzentren in Deutschland.

Schritt 1: Mit deinem VPS verbinden

Sobald dein VPS bereit ist, verbinde dich per SSH von deinem Computer aus:

ssh root@DEINE_SERVER_IP

Unter Windows nutzt du PuTTY oder das Windows Terminal. Auf Mac und Linux funktioniert der Befehl direkt im Terminal.

Schritt 2: Docker und Docker Compose installieren

n8n läuft am besten in Docker, das es zusammen mit allen Abhängigkeiten verpackt. Führe die folgenden Befehle nacheinander aus:

  • apt update && apt upgrade -y
  • apt install docker.io docker-compose -y
  • systemctl enable docker && systemctl start docker

Docker läuft jetzt auf deinem Server. Stell dir das als einen sauberen Container vor, der n8n isoliert vom Rest deines Systems hält.

Schritt 3: Docker Compose Datei für n8n erstellen

Erstelle einen neuen Ordner und eine Konfigurationsdatei:

  • mkdir ~/n8n && cd ~/n8n
  • nano docker-compose.yml

Füge folgendes in die Datei ein:

version: 

Ready to automate?

Automatisierung ohne Entwickler.

Fertige n8n Workflows für KMU — sofort einsatzbereit.

Zu den Templates →