N8N automation tool (installation and configuration using docker in Linux) 

In today’s fast-paced automation landscape, n8n has emerged as a powerful, open-source workflow automation tool that empowers engineers to streamline processes with ease. In this blog I will demonstrate building the application using docker on a linux virtual machine.

As in previous blogs I will be using a fresh install of Ubuntu 24.04.2 LTS that can be download from HERE. I then follow the Docker guide on how to istall all the relevant docker packages.

Firstly set up the Docker apt repository, starting with adding the docker GPG key.

sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
Terminal window showing commands to update package list and install necessary certificates for Docker on Ubuntu.

Next add the docker repo to the apt resourses list.

echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
Terminal command for adding Docker repository to Ubuntu.

Next downloand and install all the necessary docker components.

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
Terminal command line displaying the installation of Docker components on Ubuntu.

Next create a docker volume to store you n8n data.

docker volume create n8n_data
Terminal displaying the command 'sudo docker volume create n8n_data' followed by confirmation of the created volume.

Use the following command to  download the most recent n8n image, creates your container, and exposes the container on port 5678.

docker run -it --rm --name n8n -p 5678:5678 -v n8n_data:/home/node/.n8n docker.n8n.io/n8nio/n8n

If this runs without issue you will be able to browse to the n8n log in screen at http://localhost:5678

Login setup page for n8n workflow automation tool, featuring fields for email, first name, last name, and password.

Add an email address, names and a password and that’s enough to set up a demo account.

A customization form for the n8n automation tool, featuring dropdowns for company description, user role, automation goals, target audience, company size, and source of information about n8n.

Add some details into the customisation window.

Screenshot of the n8n workflow automation platform dashboard, displaying options to start a new workflow or test a ready-to-go AI Agent example.

After these small, easy steps you’ll be greated with the n8n default dashboard, ready to create you’re first workflow. In the following blogs we will look into developing some simple automations to make systems administration and security tasks more efficient.

Leave a Reply

Discover more from Planned Link

Subscribe now to keep reading and get access to the full archive.

Continue reading