Install n8n Automation (AI Agent) on VPS🔥Full Setup with Docker, Domain & Caddy!

Install n8n Automation (AI Agent) on VPS🔥Full Setup with Docker, Domain & Caddy!

T
Thapa Technical
3 Video Views·May 15, 2025

In this tutorial, we walk you through setting up n8n, a powerful open-source workflow automation tool (often described as an AI agent), on your own Hostinger Ubuntu VPS. We cover every step of the process: connecting to your VPS via SSH, updating and upgrading Ubuntu, configuring the UFW firewall, installing Docker and Docker Compose, and more. All the installation scripts and configuration files are available in the official n8n_starter GitHub repository (link below) so you can follow along easily.

------------------------------------------------------------------------
Click here to Buy India Best Hosting 👉 https://www.hostg.xyz/SHGZy
For Thapa Family 💥 Use the discount code THAPA7 to get Extra 10% OFF!

👉 Watch Complete VPS Setup: https://youtu.be/rm8AhGGYEVA

🌐 Link to VPS Security Setup Before Hosting: https://www.thapatechnical.com/2025/01/vps-security-settings-ssh-firewall.html
------------------------------------------------------------------------

Steps covered in this video include:
SSH into your Hostinger Ubuntu VPS
Run sudo apt update && sudo apt upgrade to update the system
Set up UFW firewall rules to allow needed ports (SSH, HTTP, etc.)
Install Docker and Docker Compose on Ubuntu
Clone the n8n_starter GitHub repo containing the n8n Docker setup
Edit the .env file with your domain and credentials
Launch n8n with docker-compose up -d
Configure a custom domain and set up Caddy as a reverse proxy
Finally, register and log in to your new n8n instance

By the end of this video, you’ll have n8n running securely on your own Hostinger VPS, ready to automate workflows. Check out the GitHub starter repo for all the code and instructions: n8n Starter Repository. If you found this tutorial helpful, please give it a thumbs up and subscribe for more beginner-friendly automation and VPS setup guides!

-----------------------------------------------------------------------

✌️ Join Us!

🚀 Become a Member: Unlock perks, free source code, and more Join Now : https://www.youtube.com/channel/UCwfaAHy4zQUb2APNOGXUCCA/join
📷 Connect on Instagram: https://www.instagram.com/thapatechnical
🗨️ Join Our Discord Server: Hang out with fellow programmers Discord Link: https://discord.gg/MdScmCsua6

------------------------------------------------------------------------

⌛TIMELINE⏳
0:00 - Intro: What You’ll Learn Today
1:30 - What is Automation? (Example: Google Form → Gmail)
3:50 - Why You Need a VPS for n8n
7:12 - Good News: n8n GitHub Repo Available!
7:40 - Log In to VPS via Terminal
8:04 - Update and Upgrade Your VPS
10:20 - Set Up a Firewall with UFW
12:50 - Install Docker on VPS
15:50 - Install n8n Using Git Repo
18:00 - Update .env File Settings
19:13 - Run n8n with Docker Compose
20:40 - Point Your Domain to VPS
24:50 - Set Up Reverse Proxy with Caddy
29:54 - Register & Login to n8n
32:40 - Final Words & Support My Work