This article contains affiliate links. If you buy through them, we may earn a commission at no extra cost to you.
Why Self-Hosting n8n on Hostinger Is a Game-Changer
If you've been using n8n on the cloud plan, you already know how powerful it is. But cloud pricing scales with executions — and once your automations start running seriously, the costs climb fast. The smartest move? Self-host n8n on a cheap VPS like hostinger, and pay a flat monthly fee instead of per-task charges.
With hostinger's VPS plans starting at around $3–5/month, you get a dedicated server where you can run n8n 24/7 with zero execution limits. You own your data, you control your environment, and you can run as many workflows as your server can handle.
This guide walks you through the entire setup in 15 minutes — no prior Linux experience required.
What You'll Need Before You Start
- A hostinger VPS account (KVM 1 or higher recommended)
- A domain or subdomain (optional but recommended for HTTPS)
- Basic comfort with copy-pasting terminal commands
- About 15 minutes of focused time
Step 1: Spin Up Your Hostinger VPS
Log into your hostinger dashboard and create a new VPS. Select Ubuntu 22.04 as your operating system — it's stable, widely supported, and has the best Docker compatibility for n8n.
Choose at least 1 vCPU and 2 GB RAM for a smooth experience. Once the server is live, note your IP address and root password. You'll connect via SSH in the next step.
Step 2: Connect to Your Server via SSH
Open your terminal (Mac/Linux) or use PuTTY (Windows) and connect to your hostinger server:
- Mac/Linux:
ssh root@YOUR_SERVER_IP - Windows: Enter your IP in PuTTY and log in with root credentials
Once connected, run a quick update to make sure your server packages are current:
apt update && apt upgrade -y
Step 3: Install Docker and Docker Compose
The easiest way to run n8n on your hostinger VPS is via Docker. Run the following commands one by one:
apt install docker.io -yapt install docker-compose -ysystemctl enable dockersystemctl start docker
Docker lets you spin up n8n as an isolated container — clean, portable, and easy to update later.
Step 4: Deploy n8n with Docker Compose
Create a new directory and a docker-compose.yml file for your n8n instance:
mkdir n8n && cd n8n
nano docker-compose.yml
Paste the following configuration into the file:
version: '3'
services:
n8n:
image: n8nio/n8n
restart: always
ports:
- "5678:5678"
environment:
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=admin
- N8N_BASIC_AUTH_PASSWORD=yourpassword
- N8N_HOST=yourdomain.com
- N8N_PROTOCOL=https
- WEBHOOK_URL=https://yourdomain.com/
volumes:
- ~/.n8n:/home/node/.n8n
Replace yourpassword and yourdomain.com with your actual values. Save and exit with Ctrl+X → Y → Enter.
Now launch n8n with:
docker-compose up -d
Step 5: Point Your Domain and Set Up HTTPS
In your hostinger DNS settings (or wherever your domain is registered), create an A record pointing your subdomain (e.g. n8n.yourdomain.com) to your VPS IP address.
Then install Nginx and Certbot to add SSL:
apt install nginx certbot python3-certbot-nginx -y- Configure Nginx as a reverse proxy to port 5678
- Run
certbot --nginx -d n8n.yourdomain.comto get a free Let's Encrypt certificate
Within minutes, your n8n instance will be accessible at https://n8n.yourdomain.com — secured, professional, and fully yours.
Step 6: Log In and Build Your First Workflow
Open your browser, navigate to your n8n URL, and log in with the credentials you set in the Docker config. You'll land directly on the n8n canvas — ready to build.
Start simple: connect a trigger (like a webhook or a schedule) to an action (like sending an email or posting to Slack). Every workflow you create on your self-hosted n8n runs for free, no matter how many times it executes.
Cost Comparison: Cloud vs. Self-Hosted
- n8n Cloud Starter: ~$20/month, limited executions
- Self-hosted on Hostinger VPS: ~$4/month, unlimited executions
For anyone running more than a handful of workflows, self-hosting n8n on hostinger pays for itself within the first month. The savings compound quickly as you scale.
Pro Tips for Your Self-Hosted n8n Setup
- Enable automatic backups on your hostinger VPS to protect your workflow data
- Set up email alerts for failed workflows inside n8n's error workflow settings
- Use environment variables to store API keys securely instead of hardcoding them in nodes
- Update n8n regularly by pulling the latest Docker image:
docker-compose pull && docker-compose up -d
Final Thoughts
Self-hosting n8n on hostinger is one of the highest-leverage moves you can make as an automation builder. You get enterprise-grade workflow automation at a fraction of the cost, with complete data ownership and no artificial limits.
The 15-minute setup is a one-time investment that pays dividends every single day your automations run. If you're serious about building reliable, scalable systems — this is the setup to start with.
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.