mirror of
https://github.com/Dokploy/templates.git
synced 2026-07-15 14:52:05 -05:00
[PR #1029] feat: add n8n queue mode template (scalable workers) #16337
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Dokploy/templates/pull/1029
Author: @Siumauricio
Created: 7/14/2026
Status: 🔄 Open
Base:
canary← Head:feat/n8n-queue📝 Commits (1)
fe94f4cfeat: add n8n queue mode template📊 Changes
5 files changed (+199 additions, -0 deletions)
View changed files
➕
blueprints/n8n-queue/docker-compose.yml(+124 -0)➕
blueprints/n8n-queue/instructions.md(+24 -0)➕
blueprints/n8n-queue/meta.json(+18 -0)➕
blueprints/n8n-queue/n8n.png(+0 -0)➕
blueprints/n8n-queue/template.toml(+33 -0)📄 Description
Summary
Adds a new n8n Queue Mode template (
blueprints/n8n-queue) implementing n8n's official queue mode for high-throughput production workloads:n8nio/n8n:2.30.4— currentstable/latest): editor UI + webhooks, publishes executions to the queue (EXECUTIONS_MODE=queue,OFFLOAD_MANUAL_EXECUTIONS_TO_WORKERS=true).command: worker): scalable worker pool,deploy.replicasdriven by theN8N_WORKER_REPLICASenv var (default2) — users scale by changing one env var in Dokploy and redeploying (same pattern as the windmill/erpnext templates).--requirepass), healthchecked.N8N_ENCRYPTION_KEY, healthchecks on every service (/healthzon main and workers viaQUEUE_HEALTH_CHECK_ACTIVE=true), workers start only after the main instance is healthy (migrations done).instructions.mddocuments how to scale workers and how to add optional dedicated webhook processors.Note: the Clevermation repo referenced in the issue (autoscaler/monitor images) no longer exists on GitHub, so this template follows the official n8n queue-mode documentation with the official
n8nio/n8nimage instead, pinned to the current stable release. Config was tuned against 2.30.4's deprecation warnings (N8N_WEBHOOK_URLinstead ofWEBHOOK_URL, no obsoleteN8N_RUNNERS_ENABLED).Test evidence
Local end-to-end (docker compose, fresh volumes):
n8n worker is now ready(concurrency 10) and connect to Redis.n8n-worker-1:Worker started execution 2 (job 2)→Worker finished execution 2 (job 2)n8n-worker-2:Worker started execution 1 (job 1)/Worker started execution 3 (job 3)→ both finished/rest/executions: 3×success, modewebhook.N8N_WORKER_REPLICASchanges the number of worker replicas.Deployed on a Dokploy demo instance from this exact blueprint (template import API):
composeStatus: donein 175s; all 5 containers running (n8n,n8n-workerx2,redis,postgres).n8n worker is now ready(Version: 2.30.4,Concurrency: 10) after connecting to Redis, with no config-related deprecation warnings.node build-scripts/generate-meta.js --checkpasses (490 templates validated).Closes #455
🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.