n8n logoWorkflow Automation

n8n

A self-hosted workflow automation platform connecting hundreds of services as an alternative to Zapier and Make.

Hardware compatibility

Unknown — resource or architecture evidence is missing. Check upstream docs.

Hardware compatibility

Available CPU cores
Recorded minimum: Unknown (not recorded); Recorded recommended: Unknown (not recorded)
Available RAM (GiB)
Recorded minimum: Unknown (not recorded); Recorded recommended: Unknown (not recorded)
Available disk (GiB)
Recorded minimum: Unknown (not recorded); Recorded recommended: Unknown (not recorded)
Architecture
Unknown (not recorded)

Unknown (not recorded)

Review notes

Use PostgreSQL for production instead of SQLite. Enable queue mode with Redis for many concurrent workflows.

Deployment guide

Run with Docker Compose using PostgreSQL. Optionally add Redis for queue mode.

  1. Create data directory and docker-compose file.
  2. Configure PostgreSQL as the main database.
  3. Run the n8n container with volumes for workflows and credentials.
  4. Create an admin account and start building workflows.
  5. Set the correct webhook URL if using webhook triggers.
Backup:Back up the PostgreSQL database and .n8n directory containing encrypted credentials.

No hosted installer

The examples below are unverified, not installers. Consult official documentation and replace secrets before use.

Official documentation

Unverified deployment examples

Do not run unchanged. Replace all placeholder secrets, pin image versions, review privileged access and exposed ports, configure HTTPS and backups. These snippets may be incomplete or outdated; use upstream docs.

docker-compose.ymlyaml
services:
  n8n:
    image: n8nio/n8n:latest
    container_name: n8n
    environment:
      DB_TYPE: postgresdb
      DB_POSTGRESDB_HOST: postgres
      DB_POSTGRESDB_DATABASE: n8n
      DB_POSTGRESDB_USER: n8n
      DB_POSTGRESDB_PASSWORD: CHANGEME_db_password # CHANGE THIS
      N8N_HOST: "n8n.example.com"
      WEBHOOK_URL: "https://n8n.example.com/"
    volumes:
      - ./data:/home/node/.n8n
    ports:
      - "5678:5678"
    depends_on:
      - postgres
    restart: unless-stopped

  postgres:
    image: postgres:16-alpine
    container_name: n8n_postgres
    environment:
      POSTGRES_USER: n8n
      POSTGRES_PASSWORD: CHANGEME_db_password # CHANGE THIS
      POSTGRES_DB: n8n
    volumes:
      - ./postgres:/var/lib/postgresql/data
    restart: unless-stopped
setup.shbash
# No executable setup script; follow current official documentation.
# Không có script cài đặt; xem tài liệu chính thức hiện hành.
# https://docs.n8n.io

Stack

TypeScriptNode.jsPostgreSQL