n8n

n8n is a powerful, self-hosted workflow automation platform that lets you connect apps, APIs, and services without complex coding. It enables you to build automated workflows for tasks like notifications, data syncing, AI integrations, and business process automation through a flexible visual editor. This template includes: n8n web interface for creating and managing workflows Persistent storage for workflow data and credentials Easy environment variable configuration Support for hundreds of integrations including databases, APIs, cloud services, and AI tools Self-hosted deployment for full privacy and control Perfect for developers, startups, and businesses that want to automate repetitive tasks, connect systems, and build powerful backend workflows without relying on third-party automation platforms.

yaml

docker-compose.yml

services:
  n8n:
    container_name: n8n
    image: n8nio/n8n
    restart: unless-stopped
    ports:
      - ${N8N_PORT}:5678
    environment:
      - N8N_ENFORCE_SETTINGS_FILE_PERMISSIONS=true
      - N8N_RUNNERS_ENABLED=true
      - N8N_SECURE_COOKIE=false
    volumes:
      - ./config:/home/node/.n8n
      - ./files:/files
networks: {}

.ENV

.env example

N8N_PORT=5678

deployment

Quick Start

  1. Create a working directory named after the service.
  2. Copy the compose file and generated `.env` into that directory.
  3. Review the variables and replace placeholders with real values.
  4. Run `docker compose up -d`.
mkdir n8n
cd n8n
# create docker-compose.yml
# create .env
docker compose up -d