Using n8n with Docker Compose

Mohammad Faisal
3 min readFeb 18, 2024

How to use your automation tool for free!

Who doesn’t love automation? At least, the idea is very intriguing.

However, the automation tools are not free. For example, zapier charges you 20 USD per month to start.

But there is a great alternative -> n8n

Wait, what is n8n?

n8n is a free zapier alternative.

What is Zapier? Zapier is a tool that allows you to connect apps you use every day to automate tasks and save time.

For example, you want to get a call whenever you get a new email from a particular email address.

Zapier allows you to do that — but it’s not free.

n8n is free — but with a catch. You have to host it yourself.

Today, we will see how to host n8n using Docker Compose.

Prerequisites

  • Docker
  • Docker compose

Step 1: Create a Docker Compose file

Create a new file called docker-compose.yml and add the following content. Don't worry about what it does, we will explain it later.

version: '3'
version: '3.8'

services:
n8n:
image: n8nio/n8n
ports:

--

--