More screenshots

    Works with the AI Agents you already use

    n8n docker queue production

    by Percio Andrade Castelo Branco

    1

    Deploy and scale production n8n Queue Mode with PostgreSQL 17, Redis, and optimized reverse proxy configs.

    $15

    Secure checkout via Stripe

    Money-back guarantee

    Converts to your local currency at checkout

    Security scanned
    n8n docker queue production

    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

    ComponentConfigurationStatus
    Domainn8n.example.comConfigured
    ModeQueue Mode (PostgreSQL 17 + Redis 7)Active
    Workers2 ReplicasRunning
    ProxyNginx + Certbot SSLActive
    Persistencesystemd unit installedEnabled

    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

    1. Access your instance at https://n8n.example.com to create your owner account.
    2. Run /opt/n8n-docker/n8n-docker.sh --backup to verify the automated backup pipeline.
    3. Save the N8N_ENCRYPTION_KEY from /opt/n8n-docker/.env in 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-worker replicas 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

    1. Preflight Audit runs diagnostics on host RAM, disk, and port availability before any files are touched.
    2. Secrets Initialization generates cryptographically random keys and passwords for the database, cache, and n8n encryption.
    3. Stack Deployment executes the Docker Compose or Podman Compose lifecycle to spin up the hardened architecture.
    4. Proxy Configuration adapts provided Nginx or Caddy templates to your FQDN and handles SSL termination.
    5. 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. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

    3. 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
    N8nDockerPostgresqlRedis
    Software
    Docker Compose V2
    orPodman Compose
    BashopensslsscurlgzipDomain pointing to server IP (for HTTPS)
    Optional
    Nginx 1.25+ with Certbot
    orCaddy
    sudo 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

    Terminal / Shell
    Network Access
    Read Files
    Write Files
    Environment Variables

    Allowed Hosts

    n8n.io
    docker.com
    postgresql.org
    redis.io

    File Scopes

    **/.env
    **/docker-compose.yml
    **/backups/*.sql.gz
    **/proxies/*
    /etc/nginx/**
    /etc/caddy/Caddyfile
    /etc/systemd/system/n8n-docker.service

    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.

    Listed13 days ago

    What's inside

    Frequently Asked Questions

    This skill transitions your n8n setup from a single-process SQLite instance to a robust 'Queue Mode' architecture, solving database locking issues, UI 'Connection lost' errors, and allowing you to handle thousands of concurrent workflows across multiple workers.

    The skill includes a complete set of production-hardened Docker/Podman Compose files, optimized PostgreSQL 17 and Redis configurations, Nginx/Caddy proxy templates, and a specialized lifecycle script for secure deployment and automated backups.

    Yes, the deployment is panel-agnostic and works on any Linux distribution (Ubuntu, Debian, CentOS, etc.) that supports Docker or Podman, provided the host has at least 2 GB of RAM.

    The provided lifecycle script includes a safety mechanism that protects your unique encryption keys during updates, ensuring you don't lose access to your stored credentials when upgrading n8n versions.

    While this skill focuses on the backend infrastructure, the resulting n8n instance is fully compatible with any AI agent or framework that connects via webhooks or the n8n REST API.

    The skill handles the internal networking and proxy headers for WebSockets, but it assumes you will use an external tool like Certbot, Cloudflare, or a Load Balancer to terminate the actual HTTPS connection.

    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.