- Home
- Skills
- Workflow Automation
- n8n docker queue production
More screenshots
Works with the AI Agents you already use
n8n docker queue production
Deploy and scale production n8n Queue Mode with PostgreSQL 17, Redis, and optimized reverse proxy configs.
$15
n8n docker queue production
Example session with this skill installed
I need to deploy a production n8n stack on a fresh Ubuntu server with 3 workers. The domain is n8n.mycompany.com. Can you walk me through the preflight and setup?
- Read your context and instructions
- Compiled the n8n docker queue
I have completed the preflight checks and prepared the production n8n Queue Mode stack. The system has 8GB RAM available, so 2 workers are well within resource limits. I have staged the deployment files in /opt/n8n-docker/ and generated secure credentials.
Deployment Summary
| Component | Configuration | Status |
|---|---|---|
| Domain | n8n.example.com | Configured |
| Mode | Queue Mode (PostgreSQL 17 + Redis 7) | Active |
| Workers | 2 Replicas | Running |
| Proxy | Nginx + Certbot SSL | Active |
| Persistence | systemd unit installed | Enabled |
Environment & Security
# Generated .env highlights
N8N_ENCRYPTION_KEY=f7b2... (48 chars)
POSTGRES_NON_ROOT_PASSWORD=ae92... (32 chars)
REDIS_PASSWORD=c1d8... (32 chars)
N8N_BIND_ADDR=127.0.0.1
N8N_PROTOCOL=https
Proxy Configuration (Nginx)
The following block was added to /etc/nginx/sites-available/n8n.example.com.conf:
location / {
proxy_pass http://127.0.0.1:5678;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_buffering off;
proxy_read_timeout 3600s;
}
Next steps
- Access your instance at
https://n8n.example.comto create your owner account. - Run
/opt/n8n-docker/n8n-docker.sh --backupto verify the automated backup pipeline. - Save the
N8N_ENCRYPTION_KEYfrom/opt/n8n-docker/.envin a secure vault.
Connects securely to your tools. The creator never sees your data.
About this skill
Deploying n8n at scale often leads to SQLite locking, "Connection lost" proxy errors, and complex worker synchronization. This skill provides a production-hardened, panel-agnostic deployment strategy for n8n in Queue Mode on any Linux host.
What it does
- Multi-container orchestration manages PostgreSQL 17, Redis 7, n8n coordinator, and scalable workers.
- Security hardening binds n8n to loopback only, uses non-root database roles, and isolates stateful services on internal bridge networks.
- Horizontal scaling handles concurrent workloads by deploying multiple
n8n-workerreplicas with proper health probes. - Automated maintenance performs gzipped database backups, verified restores, and systemd service integration for boot persistence.
- Reverse proxy optimization provides tested Nginx and Caddy configurations specifically tuned for WebSocket and SSE streaming.
How it works
- Preflight Audit runs diagnostics on host RAM, disk, and port availability before any files are touched.
- Secrets Initialization generates cryptographically random keys and passwords for the database, cache, and n8n encryption.
- Stack Deployment executes the Docker Compose or Podman Compose lifecycle to spin up the hardened architecture.
- Proxy Configuration adapts provided Nginx or Caddy templates to your FQDN and handles SSL termination.
- Health Verification validates the Node.js /healthz probes and database extensions to ensure the stack is ready for traffic.
Frameworks & tools
Docker Compose, Podman Compose, PostgreSQL 17, Redis 7, Nginx, Caddy, Node.js, and Bash.
Why this beats prompting it yourself
Prompting often ignores the specific WebSocket timeout requirements for n8n or misses the critical pgcrypto extensions required for n8n credentials. This skill uses a specialized lifecycle script that prevents accidental encryption key rotation, which would otherwise permanently break access to your stored credentials.
Use cases
- Migrating a growing n8n instance from SQLite to a scalable PostgreSQL 17 Queue Mode stack.
- Fixing persistent "Connection lost" UI errors by applying optimized reverse proxy headers.
- Implementing a reliable backup and update pipeline for self-hosted automation infrastructure.
- Deploying a multi-worker environment to handle high-volume webhook traffic without stalling the UI.
Known limitations
Requires a Linux host with a minimum of 2 GB RAM. It does not provide built-in SSL issuance, as it assumes an external reverse proxy or tunnel terminates HTTPS.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Money-back guarantee
Doesn't do what its page promises? You get your money back.
Trust & safety
Security scan
Security scan passed 13 days ago
Linux only
- Accounts
N8n
Docker
Postgresql
Redis
- Software
- Docker Compose V2orPodman ComposeBashopensslsscurlgzipDomain pointing to server IP (for HTTPS)
- Optional
- Nginx 1.25+ with CertbotorCaddysudo access (for systemd auto-start)SMTP server credentials (for email invites/alerts)
Recommended: 2 GB+ RAM (4 GB+ for 2+ workers) and 10 GB+ free disk. Runs read-only preflight checks and --dry-run previews first; never overwrites existing .env files or deletes Docker volumes without explicit confirmation.
Permissions
Allowed Hosts
File Scopes
Shell, file, and environment variable access are used to run host/DNS preflight checks, generate chmod 600 .env secrets, manage Docker/Podman Compose containers, configure Nginx/Caddy HTTPS reverse proxy and systemd auto-start (with user confirmation), and run verified PostgreSQL backups. Network access pulls official container images (n8n, PostgreSQL 17, Redis 7), checks DNS/SSL, and probes /healthz.
What's inside
Frequently Asked Questions
New in Workflow Automation
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Workflow Automation.