Hosting n8n on Hostinger is like giving your workflows a cozy little home on the internet. n8n is an automation tool. It connects apps. It moves data. It saves you from doing boring clicks all day. Nice, right?
TLDR: You need a Hostinger VPS, not basic shared hosting. Install Docker, point a domain or subdomain to your server, and run n8n with Docker Compose. Add SSL, open n8n in your browser, and start building automations like a tiny robot wizard.
What You Need Before You Start
Let’s keep this simple. Before you begin, gather these things:
- A Hostinger VPS plan
- A domain or subdomain, like n8n.yourdomain.com
- Basic comfort with copy and paste
- A computer with a terminal app
- About 30 to 45 minutes
n8n should run on a VPS because it needs background processes. Shared hosting is not made for that. A VPS gives you your own small server. It is like renting an apartment instead of sharing a bunk bed.
Step 1: Buy or Open Your Hostinger VPS
Log in to your Hostinger account. Go to the VPS section. Pick a VPS plan. For beginners, a small plan is fine. If your workflows grow, you can upgrade later.
Choose Ubuntu as the operating system. Ubuntu is popular. It has lots of help online. It also works well with Docker.
After the VPS is created, Hostinger will show important server details. Look for:
- IP address
- Root username
- Root password or SSH access details
Keep these safe. They are the keys to your server castle.
Step 2: Connect to Your VPS
Now you need to enter your server. This is done with SSH. On Mac or Linux, open Terminal. On Windows, you can use PowerShell or Windows Terminal.
Type this command. Replace the IP address with your real VPS IP:
ssh root@YOUR_SERVER_IP
If it asks if you trust the server, type:
yes
Then enter your password. You will not see the password while typing. That is normal. The terminal is not broken. It is just being sneaky.
Step 3: Update the Server
Before installing anything, update the server. This is like giving your VPS a fresh cup of coffee.
apt update && apt upgrade -y
This may take a few minutes. Let it finish. Do not panic if lots of text appears. Servers love talking.
Step 4: Install Docker
Docker makes hosting n8n much easier. It places n8n inside a neat container. Less mess. Fewer headaches.
Run this command:
apt install docker.io docker-compose -y
Then enable Docker:
systemctl enable docker
systemctl start docker
Check if Docker works:
docker --version
If you see a version number, you are doing great. High five.
Step 5: Point Your Domain to the VPS
Now connect your domain to your server. In Hostinger, open the DNS zone for your domain. Create an A record.
- Type: A
- Name: n8n
- Value: your VPS IP address
- TTL: default is fine
This creates a subdomain like:
n8n.yourdomain.com
DNS can take time. Sometimes it works in minutes. Sometimes it takes longer. DNS is a sleepy turtle.
Step 6: Create a Folder for n8n
Back in your SSH terminal, create a folder for your n8n setup:
mkdir -p /opt/n8n
cd /opt/n8n
This keeps things tidy. Future you will be thankful.
Step 7: Create the Docker Compose File
Now create a file named docker-compose.yml:
nano docker-compose.yml
Paste this inside. Replace n8n.yourdomain.com with your real domain.
version: "3"
services:
n8n:
image: n8nio/n8n
restart: always
ports:
- "5678:5678"
environment:
- N8N_HOST=n8n.yourdomain.com
- N8N_PORT=5678
- N8N_PROTOCOL=http
- WEBHOOK_URL=http://n8n.yourdomain.com/
- GENERIC_TIMEZONE=UTC
volumes:
- n8n_data:/home/node/.n8n
volumes:
n8n_data:
Save the file. In Nano, press CTRL + O, then Enter, then CTRL + X.
This setup runs n8n on port 5678. But we still need HTTPS. We want the little lock icon. The lock icon is good. The lock icon is our friend.
Step 8: Start n8n
Run this command:
docker-compose up -d
Check if it is running:
docker ps
You should see an n8n container. If yes, your robot engine is alive.
At this point, n8n may be available at:
http://YOUR_SERVER_IP:5678
But do not stop here. We need a clean domain and SSL.
Step 9: Add Nginx as a Reverse Proxy
A reverse proxy sends visitors from your domain to n8n. Think of it as a friendly receptionist.
Install Nginx:
apt install nginx -y
Create a config file:
nano /etc/nginx/sites-available/n8n
Paste this. Replace the domain again.
server {
listen 80;
server_name n8n.yourdomain.com;
location / {
proxy_pass http://localhost:5678;
proxy_http_version 1.1;
proxy_set_header Connection "";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
Save and exit. Then enable it:
ln -s /etc/nginx/sites-available/n8n /etc/nginx/sites-enabled/
nginx -t
systemctl reload nginx
If the test says successful, celebrate softly. Your server is listening.
Step 10: Add Free SSL
Now install Certbot. It gives you a free SSL certificate from Let’s Encrypt.
apt install certbot python3-certbot-nginx -y
Run Certbot:
certbot --nginx -d n8n.yourdomain.com
Follow the questions. Choose the option to redirect HTTP to HTTPS if asked.
Now edit your Docker Compose file:
nano /opt/n8n/docker-compose.yml
Change these lines:
- N8N_PROTOCOL=https
- WEBHOOK_URL=https://n8n.yourdomain.com/
Restart n8n:
cd /opt/n8n
docker-compose down
docker-compose up -d
Step 11: Open n8n in Your Browser
Go to:
https://n8n.yourdomain.com
You should see the n8n setup screen. Create your owner account. Use a strong password. Do not use password123. That password belongs in the museum of bad ideas.
Once inside, you can create your first workflow. Try something simple. For example:
- Trigger a workflow manually
- Send yourself an email
- Save data to Google Sheets
- Post a message to Slack or Discord
Useful Beginner Tips
- Back up your data. Your workflows live in the Docker volume.
- Use HTTPS. Many webhooks need it.
- Keep your VPS updated. Run updates often.
- Do not expose random ports. Keep things clean and safe.
- Start small. One workflow at a time.
How to Update n8n Later
n8n updates often. New features appear like snacks at a party. To update, run:
cd /opt/n8n
docker-compose pull
docker-compose down
docker-compose up -d
That is it. Docker downloads the newest image and restarts n8n.
Final Thoughts
You now have n8n running on Hostinger. You used a VPS, Docker, DNS, Nginx, and SSL. That may sound fancy. But you did it step by step.
From here, the fun begins. Connect your apps. Build tiny automations. Make boring work disappear. Your Hostinger VPS is now the home of your personal workflow robot. Treat it well, and it will save you many clicks.