Back to Apps
n8n.io

Deploy n8n.io on Your Own Server

Node based workflow automation tool

Automation

Want to deploy n8n.io on your server faster? Try Senate with one-command setup, automatic HTTPS and monitoring.

Get Started

What is n8n.io?

n8n is a free and open node based workflow automation tool. If you want to invite members and enable password resets, you will need to enter SMTP details.

Self-Host n8n.io

Follow these steps to deploy on your own server.

1

Install Docker

Skip this step if Docker is already installed on your server.

curl -fsSL https://get.docker.com | sh
2

Configure

Customize the settings below. Defaults work for most cases.

Application
Database
3

Deploy

Copy the configuration and run it on your server.

services:
  n8n_io:
    image: n8nio/n8n:1.106.3
    environment:
      DB_POSTGRESDB_DATABASE: n8n
      DB_POSTGRESDB_HOST: n8n_io-db
      DB_POSTGRESDB_PASSWORD: 3a26caded22935b327dc0d16c48d891397bb8af1
      DB_POSTGRESDB_USER: n8n
      DB_TYPE: postgresdb
      GENERIC_TIMEZONE: UTC
      N8N_DIAGNOSTICS_ENABLED: "false"
      N8N_EDITOR_BASE_URL: https://n8n_io.your-domain.com
      N8N_EMAIL_MODE: smtp
      N8N_ENCRYPTION_KEY: 431f8632ec00a895dd21531495f830b3fb98aad538300ab36a
      N8N_HOST: n8n_io.your-domain.com
      N8N_PROTOCOL: https
      N8N_RUNNERS_ENABLED: "true"
      N8N_SMTP_HOST: ""
      N8N_SMTP_PASS: ""
      N8N_SMTP_PORT: ""
      N8N_SMTP_SENDER: ""
      N8N_SMTP_SSL: "true"
      N8N_SMTP_USER: ""
      NODE_ENV: production
      TZ: UTC
      WEBHOOK_URL: https://n8n_io.your-domain.com
    volumes:
      - n8n_io:/home/node/.n8n
      - n8n_io-files:/files
    depends_on:
      - n8n_io-db
  n8n_io-db:
    image: postgres:15.0-alpine
    environment:
      POSTGRES_DB: n8n
      POSTGRES_PASSWORD: 3a26caded22935b327dc0d16c48d891397bb8af1
      POSTGRES_USER: n8n
    volumes:
      - n8n_io-db:/var/lib/postgresql/data
volumes:
  n8n_io: {}
  n8n_io-files: {}
  n8n_io-db: {}

Then run:

docker compose up -d
4

Access

Once started, access your app at http://localhost:5678

Why Self-Host n8n.io?

Full Data Ownership

Your data stays on your servers. No third-party access.

No Monthly Fees

Pay only for your server. No per-seat or usage charges.

Complete Control

Customize, backup, and scale on your own terms.

Privacy & Compliance

Meet GDPR, HIPAA, or internal security requirements.

Technical Details

Docker Image

n8nio/n8n:${N8N_VERSION}

Want to go faster?

Try Senate! Senate handles Docker, HTTPS, updates, and monitoring for you. Deploy any of our 300+ apps with a single command.

Install on any Linux server:

sh -c "$(curl -sSL https://get.senate.sh)"