install n8n

Install n8n Locally: Full Setup Guide for Linux 2026

Docker is one of the easiest ways to deploy modern applications on a VPS. In this guide, you will learn how to install n8n automation tool on a fresh VPS using Docker with a clean and production-ready setup. n8n is a powerful workflow automation tool that helps you connect apps, APIs, and services without coding.

What is n8n ?

n8n is an open-source workflow automation tool that helps you connect different apps and services together without needing complex coding. It works like a visual automation builder, where you create workflows by linking “nodes” instead of writing full programs. LEARN MORE

Install Docker (Docker Basics)

curl -fsSL https://get.docker.com | sh

Now you need to create new folder and create yml, docker and .env file to rung n8n

# Create new folder
mkdir n8n && cd n8n
# .env file (create this first)
nano .env
# Create Docker Compose file
nano docker-compose.yml

Create Environment File (nano .env)

# Timezone
TZ=Asia/Dhaka
GENERIC_TIMEZONE=Asia/Dhaka

# Basic Auth (login security)
N8N_BASIC_AUTH_ACTIVE=true
N8N_BASIC_AUTH_USER=admin
N8N_BASIC_AUTH_PASSWORD=strong_password_here

# Main settings
N8N_HOST=localhost
N8N_PORT=5678
N8N_PROTOCOL=http

# Security (recommended)
N8N_ENCRYPTION_KEY=your_random_long_key_here

Create Docker Compose File (nano docker-compose.yml)

services:
  n8n:
    image: docker.n8n.io/n8nio/n8n:latest
    container_name: n8n
    restart: unless-stopped

    ports:
      - "5679:5678"

    env_file:
      - .env

    volumes:
      - n8n_data:/home/node/.n8n

volumes:
  n8n_data:

Start n8n

docker compose up -d

Then restart:

docker compose down
docker compose up -d

Now open http://localhost:5679/

n8n is popular because it:

  • Saves time by automating repetitive tasks
  • Reduces manual work
  • Works with almost any API
  • Can replace tools like Zapier (self-hosted alternative)
  • Gives full control over data and automation

n8n is one of the best automation tools for developers, freelancers, and SaaS builders. It helps you build powerful workflows without writing full applications. If you’re running a VPS or SaaS project, n8n can save you hours of manual work every day.

    Leave a Comment

    Your email address will not be published. Required fields are marked *