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 -ysystemctl enable dockersystemctl 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 ~/n8nnano 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.