Files
templates/blueprints/n8n-queue/template.toml
Mauricio Siu fe94f4ce0b feat: add n8n queue mode template
n8n running in queue mode (EXECUTIONS_MODE=queue): main instance for the
editor/webhooks, a scalable pool of workers (deploy.replicas driven by the
N8N_WORKER_REPLICAS env var), Redis (Bull) as the queue broker and
PostgreSQL as the database. Pinned to the current stable n8nio/n8n:2.30.4.

Closes #455

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-14 16:15:50 -06:00

34 lines
759 B
TOML

[variables]
main_domain = "${domain}"
postgres_user = "${username}"
postgres_password = "${password:24}"
postgres_db = "n8n"
redis_password = "${password:24}"
n8n_encryption_key = "${base64:32}"
[config]
mounts = []
[[config.domains]]
serviceName = "n8n"
port = 5_678
host = "${main_domain}"
[config.env]
N8N_HOST = "${main_domain}"
GENERIC_TIMEZONE = "Europe/Berlin"
# Number of queue workers. Change it and redeploy to scale.
N8N_WORKER_REPLICAS = "2"
# PostgreSQL
POSTGRES_USER = "${postgres_user}"
POSTGRES_PASSWORD = "${postgres_password}"
POSTGRES_DB = "${postgres_db}"
# Redis (Bull queue)
REDIS_PASSWORD = "${redis_password}"
# Encryption key shared by the main instance and the workers (IMPORTANT)
N8N_ENCRYPTION_KEY = "${n8n_encryption_key}"