DEV Community

Cover image for How To Self-Host N8N For FREE (In 4 Minutes).
Ebikara Spiff ᴀɪᴄᴍᴄ
Ebikara Spiff ᴀɪᴄᴍᴄ

Posted on

How To Self-Host N8N For FREE (In 4 Minutes).

Image of n8n monthly cost

Introduction

Do you want powerful automations without paying for pricey tools? Let me tell you a secret: you can self-host n8n for free and it only takes 4 minutes to set up.

n8n lets you connect apps, move data, and automate tasks that usually eat up your time. The best part of it all is that You own it. No subscriptions. No limits.

In this guide, I’ll show you step by step how to get n8n running fast using Docker. By the end, you will have your own automation hub that is free, simple, and under your control. 🚀

Step 1
First we have to download and install Docker

→ Go to docker.com and download Docker desktop for system.

Image of docker download page

→ Mine is Windows.

Image of dockers windows download page

Before installing Docker, you must check the system requirements to confirm if your PC can run it.

## System Requirements (Step by Step)

Image of docker's system requirements page

Step 1: Check WSL Version

The first requirement is WSL 1.1.3.0 or later.

To check if it’s installed:

→ Press Windows + R, type cmd, and press Enter.

Image docker's system's requirement

It will take you to your terminal

Image of window terminal

→ In terminal, run WSL

Image WIN Terminal

If WSL runs, it’s installed.

Image WIN Terminal

If not installed

→ Type wsl --install and press enter

Image WIN Terminal

Step 2: Check Windows Version

Next on the requirement page, it says we need to have:

  • Operating System: Windows 11, 64-bit

  • Edition: Pro

  • Version: 21H2 or later

→ Press Win + R and type winver in the box, then hit Okay

Image of system's requirement

My version is 22H2

Image of my windows version

Step 3: Enable WSL 2 Features

The next requirement - Turn on WSL 2 features on windows.

→ Go to the search bar on your system and type Enable windows

Image of windows home page

→ Click on Turn Windows features on or off

Image of windows home page

→ Enable Windows Subsystem for Linux (WSL) by ticking the box beside it.

→ Click Ok

Image of WSL box

Wait for setup to finish

Image of setup

→ Select Don’t restart for now.

Image setup

Step 4: Verify Virtualization

Next on the requirement page, check if virtualization is enabled.

To check if Virtualization is enabled:

→ Press Ctrl + Esc key to open Task Manager.

Image of task manager

→ Click on the second icon

Image of task manager

→ Click on CPU.

At the bottom, check if Virtualization is enabled (it usually is by default).

Image of CPU

🛠️ Install Docker on Windows

Step 1: Run the Installer

→ Double-click the Docker Desktop installer you downloaded.

→ Click Yes when prompted for permissions.

Image of docker file

Step 2: Configure Setup

→ Keep the shortcut option checked.

→ Click OK to continue.

Image docker setup

Step 3: Install

Docker will unpack files and install automatically.

This may take several minutes, be patient.

Image of docker installing

Step 4: Confirm Installation

When complete, you will see Installation Successful.

Image docker

Step 5: Restart and Launch

Restart your computer.

→ Open Docker Desktop,

You are ready to use Docker

Image docker's home page

## How to Self-Host n8n for Free

Step 1. Open Docker Desktop

Make sure Docker is installed and running.

Image docker's home page

Step 2. Go to the Images Tab

In Docker Desktop

→ Click on Images from the left panel.

Image of docker home page

Step 3. Search for n8n

→ Click on search images to run.

Image of docker home page

→ In the search bar, type: n8n

Image of search bar

Step 4. Select the Official Image

→ Choose n8nio/n8n (the one with 100M+ downloads).

→ Click Pull.

This downloads the official n8n Docker image to your computer.

Image of n8n.io

Step 5. Run the Image

After pulling:

→ Click Run.

Image of docker

Next, Configure the container:

Container Name: n8n

Host Port: 5678

→ Click Run again.

This downloads the official n8n Docker image to your computer.

Image docker

Step 6. Wait for Startup.

Let Docker run until you see this message:

Editor is now accessible via: http://localhost:5678

Image docker

Step 7. Open n8n in Browser

→ Copy and paste http://localhost:5678 into your browser and run.

Image docker

You will see the n8n welcome page.

Image docker

→ Confirm the URL shows localhost:5678.

Image docker

Step 8. Create Your Account

Sign up with your details (Let's use a demo account).

Image docker

Log in to access your n8n dashboard.

Image docker

Congratulations. You now have n8n running locally on your computer with Docker.

Top comments (1)

Collapse
 
spiff profile image
Ebikara Spiff ᴀɪᴄᴍᴄ

Have a great day everyone