Self-Host n8n in 30 Minutes – Full Setup Guide

n8n selbst hosten in 30 Minuten

🇬🇧 English

Why Self-Host n8n?

If you've been using cloud-based automation tools, you already know how quickly subscription costs can spiral. Self-hosting n8n gives you unlimited workflows, full data privacy, and complete control — all for the price of a small VPS. With Hostinger or Netcup, you can get a capable server for just a few euros per month.

In this guide, you'll set up a fully functional, self-hosted n8n server in under 30 minutes — even if you've never touched a Linux terminal before.

What You'll Need

  • A VPS from Hostinger or Netcup (minimum 1 vCPU, 2 GB RAM)
  • A domain name (optional but recommended for HTTPS)
  • Basic SSH access knowledge
  • About 30 minutes of your time

Step 1 – Get Your VPS

Head over to Hostinger and pick a KVM 2 plan or higher. Alternatively, Netcup offers excellent value with their VPS RS plans, especially if you're based in Europe and care about data sovereignty.

Choose Ubuntu 22.04 as your operating system — it's stable, well-supported, and all commands in this guide are tested on it.

Recommended VPS Specs

  • OS: Ubuntu 22.04 LTS
  • RAM: 2 GB minimum (4 GB recommended)
  • Storage: 20 GB SSD
  • vCPU: 1–2 cores

Step 2 – Connect to Your Server

Once your VPS is live, open your terminal and connect via SSH:

  • Mac/Linux: ssh root@YOUR_SERVER_IP
  • Windows: Use PuTTY or Windows Terminal

After logging in, update your system packages before doing anything else:

  • apt update && apt upgrade -y

Step 3 – Install Docker and Docker Compose

The easiest and most stable way to run n8n on a VPS is via Docker. Here's how to install it on Hostinger or Netcup servers:

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

Verify Docker is running with: docker --version

Step 4 – Create the n8n Docker Compose File

Create a directory for your n8n instance and set up the Docker Compose configuration:

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

Paste the following configuration into the file:

  • version: '3'
  • services: n8n
  • image: n8nio/n8n
  • ports: 5678:5678
  • environment: N8N_BASIC_AUTH_ACTIVE=true, N8N_BASIC_AUTH_USER=admin, N8N_BASIC_AUTH_PASSWORD=yourpassword
  • volumes: ~/.n8n:/home/node/.n8n
  • restart: always

Save and exit with CTRL+X, then Y, then Enter.

Step 5 – Launch n8n

Start your n8n server with a single command:

  • docker-compose up -d

Within seconds, your n8n instance will be running. Open your browser and navigate to http://YOUR_SERVER_IP:5678 — you should see the n8n login screen.

Step 6 – Secure with HTTPS (Optional but Recommended)

For production use, you should secure your n8n server with a domain and SSL certificate. Point your domain's A record to your VPS IP (from Hostinger or Netcup), then install Nginx and Certbot:

  • apt install nginx certbot python3-certbot-nginx -y
  • Configure an Nginx reverse proxy pointing to port 5678
  • certbot --nginx -d yourdomain.com

After this, your n8n dashboard will be accessible at https://yourdomain.com with a valid SSL certificate.

Step 7 – Start Automating

Log into your self-hosted n8n instance and start building workflows. Connect it to Gmail, Slack, Airtable, OpenAI, webhooks, and hundreds of other services — all without any usage limits.

Popular Use Cases for Self-Hosted n8n

  • AI-powered email triage — Automatically sort and respond to incoming emails using GPT
  • Lead generation pipelines — Scrape, enrich, and push leads to your CRM
  • Social media automation — Auto-post content across platforms on a schedule
  • Internal data sync — Keep spreadsheets, databases, and SaaS tools in sync

Cost Comparison: Cloud vs Self-Hosted n8n

  • n8n Cloud (Pro): ~$50+/month
  • Self-hosted on Hostinger: ~€5–8/month
  • Self-hosted on Netcup: ~€3–6/month

The savings add up fast — especially once your automation stack grows.

Final Thoughts

Self-hosting n8n is one of the best decisions you can make for your automation stack. You get enterprise-level workflow automation at a fraction of the cost, with no data leaving your infrastructure. Whether you choose Hostinger for its beginner-friendly interface or Netcup for its European data centers, you'll be up and running in well under 30 minutes.

Now go build something powerful. Your first n8n workflow is waiting.

This post was created with tools we use and recommend: n8n for workflow automation, Turbotic as an AI-native automation alternative, ElevenLabs for AI voiceover, Placid for visual content creation, and Hostinger for reliable VPS hosting. Some links are affiliate links.

🇩🇪 Deutsch

Warum n8n selbst hosten?

Wer Cloud-basierte Automatisierungstools nutzt, kennt das Problem: Die monatlichen Kosten steigen schnell. n8n selbst zu hosten bedeutet unbegrenzte Workflows, vollständige Datenkontrolle und echte Privatsphäre — für den Preis eines kleinen VPS-Servers. Mit Hostinger oder Netcup bekommst du einen leistungsstarken Server für nur wenige Euro im Monat.

In dieser Anleitung richtest du einen vollständig funktionierenden, selbst gehosteten n8n-Server in weniger als 30 Minuten ein — auch wenn du noch nie eine Linux-Konsole geöffnet hast.

Was du brauchst

  • Einen VPS bei Hostinger oder Netcup (mindestens 1 vCPU, 2 GB RAM)
  • Eine Domain (optional, aber für HTTPS empfohlen)
  • Grundlegende SSH-Kenntnisse
  • Etwa 30 Minuten Zeit

Schritt 1 – VPS einrichten

Gehe zu Hostinger und wähle einen KVM 2-Plan oder höher. Alternativ bietet Netcup hervorragendes Preis-Leistungs-Verhältnis mit ihren VPS RS-Tarifen — besonders wenn du in Europa ansässig bist und Wert auf Datensouveränität legst.

Wähle Ubuntu 22.04 als Betriebssystem — es ist stabil, gut unterstützt und alle Befehle in dieser Anleitung wurden darauf getestet.

Empfohlene VPS-Spezifikationen

  • Betriebssystem: Ubuntu 22.04 LTS
  • RAM: Mindestens 2 GB (4 GB empfohlen)
  • Speicher: 20 GB SSD
  • vCPU: 1–2 Kerne

Schritt 2 – Mit dem Server verbinden

Sobald dein VPS aktiv ist, verbinde dich per SSH:

  • Mac/Linux: ssh root@DEINE_SERVER_IP
  • Windows: Nutze PuTTY oder das Windows Terminal

Nach dem Einloggen aktualisiere zunächst alle Systempakete:

  • apt update && apt upgrade -y

Schritt 3 – Docker und Docker Compose installieren

Der einfachste und stabilste Weg, n8n auf einem VPS zu betreiben, ist Docker. So installierst du es auf Hostinger- oder Netcup-Servern:

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

Überprüfe die Installation mit: docker --version

Schritt 4 – Docker Compose Datei erstellen

Erstelle ein Verzeichnis für deine n8n-Instanz und richte die Docker Compose-Konfiguration ein:

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

Füge folgende Konfiguration in die Datei ein:

  • version: '3'
  • services: n8n
  • image: n8nio/n8n
  • ports: 5678:5678
  • environment: N8N_BASIC_AUTH_ACTIVE=true, N8N_BASIC_AUTH_USER=admin, N8N_BASIC_AUTH_PASSWORD=deinpasswort
  • volumes: ~/.n8n:/home/node/.n8n
  • restart: always

Speichern und beenden mit CTRL+X, dann Y, dann Enter.

Schritt 5 – n8n starten

Starte deinen n8n-Server mit einem einzigen Befehl:

  • docker-compose up -d

Innerhalb von Sekunden läuft deine n8n-Instanz. Öffne deinen Browser und gehe zu http://DEINE_SERVER_IP:5678 — du siehst den n8n-Anmeldebildschirm.

Schritt 6 – Mit HTTPS absichern (optional, aber empfohlen)

Für den produktiven Einsatz solltest du deinen n8n-Server mit einer Domain und einem SSL-Zertifikat absichern. Richte den A-Record deiner Domain auf die VPS-IP (von Hostinger oder Netcup) aus und installiere dann Nginx und Certbot:

  • apt install nginx certbot python3-certbot-nginx -y
  • Nginx-Reverse-Proxy auf Port 5678 konfigurieren
  • certbot --nginx -d deinedomain.de

Danach ist dein n8n-Dashboard unter https://deinedomain.de mit gültigem SSL-Zertifikat erreichbar.

Schritt 7 – Mit dem Automatisieren beginnen

Logge dich in deine selbst gehostete n8n-Instanz ein und baue deine ersten Workflows. Verbinde es mit Gmail, Slack, Airtable, OpenAI, Webhooks und hunderten anderen Diensten — ganz ohne Nutzungslimits.

Beliebte Anwendungsfälle für selbst gehostetes n8n

  • KI-gestützte E-Mail-Verwaltung — E-Mails automatisch sortieren und mit GPT beantworten
  • Lead-Generierungs-Pipelines — Leads scrapen, anreichern und ins CRM übertragen
  • Social-Media-Automatisierung — Inhalte nach Zeitplan auf mehreren Plattformen veröffentlichen
  • Interne Datensynchronisierung — Tabellen, Datenbanken und SaaS-

    Dieser Beitrag wurde mit Tools erstellt, die wir selbst nutzen und empfehlen: n8n für Workflow-Automatisierung, Turbotic als KI-native Automatisierungsalternative, ElevenLabs für KI-Voiceover, Placid für visuelle Content-Erstellung und netcup für zuverlässiges VPS-Hosting in Deutschland. Einige Links sind Affiliate-Links.