AI & Automation
8 min
2025-10-19
n8n is a powerful workflow automation tool that allows you to connect apps and services with zero or minimal code. While the n8n cloud plan requires a subscription, you can run n8n fully on your local machine using Docker for free.
Before running n8n locally, ensure Docker is installed on your system:
This ensures that your workflows and credentials persist even if the container is removed:
mkdir ~/n8n-data
Run the following command in your terminal:
docker run -it --rm --name n8n -p 5678:5678 -v ~/n8n-data:/home/node/.n8n n8nio/n8n
Explanation:
http://localhost:5678Open your browser and go to http://localhost:5678. You can now start creating workflows just like on the cloud.
For more advanced setups (persistent credentials, authentication, environment variables), create a docker-compose.yml file:
version: "3"
services:
n8n:
image: n8nio/n8n
ports:
- "5678:5678"
volumes:
- ./n8n-data:/home/node/.n8n
environment:
- N8N_BASIC_AUTH_ACTIVE=true
- N8N_BASIC_AUTH_USER=admin
- N8N_BASIC_AUTH_PASSWORD=admin123
Run it with:
docker-compose up -d
If your cloud plan expired but you have exported workflows, you can import them locally via the n8n UI:
~/.n8n folder regularlyRunning n8n locally using Docker is a simple and free alternative to the cloud plan. With persistent storage, secure credentials, and full workflow capabilities, you can continue automating your apps and services without limitations. Docker makes setup fast, portable, and easy to maintain.
Tags :
n8n
Automation
Docker
Workflow
SelfHosted
NoCloud
CI/CD