Hey, I'm Ben
About me
I am a tea addict, who enjoys learning and discovering new things. There is so much out there.
What I'm working on
I'm obsessed with AI right now and I'm working on creating my first AI agent. This website is dedicated to sharing my progress and curiosities.
Locally installing n8n on home server
What is n8n?
n8n is a powerful automation tool you can host on your home server for privacy and control.
What you need?
- Domain name
- Tunneling (will use Cloudflare for both services)
Create a Cloudflare Tunnel:
- After buying a domain or using an existing one
- Go to the "Zero Trust" section in Cloudflare.
- Navigate to "Network" → "Tunnels" and click “Create a Tunnel.”
- Name it (e.g., n8n-tunnel) and select “Cloudflared.”
- Copy the provided installation commands for your OS.
- Use the CLI: go to Zero Trust → Tunnels → Create tunnel, then install Cloudflared using the given commands.
Install Cloudflared on Your Server:
- On your home server, paste the given install command.
- Verify that the tunnel is active and connected.
Install n8n with Docker:
Run n8n using Docker, mapping port 5678 and mounting a local volume for persistence:
docker run -d --name n8n \
-p 5678:5678 \
-v ~/.n8n:/home/node/.n8n \
n8nio/n8n
Access your instance:
Visit the domain you set up through Cloudflare Tunnel to access your n8n dashboard securely.