n8n-self-hosting

Deploy and scale self-hosted n8n with Docker, PostgreSQL, and queue mode.

242|77|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/sachacoldiq/ColdIQ-s-GTM-Skills --skill n8n-self-hosting
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: n8n-self-hosting
Source: https://github.com/sachacoldiq/ColdIQ-s-GTM-Skills/tree/main/master-skills/n8n/.claude/skills/self-hosting
Command: npx skills add https://github.com/sachacoldiq/ColdIQ-s-GTM-Skills --skill n8n-self-hosting

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps users deploy and scale self-hosted n8n instances, ensuring reliable workflow automation without relying on cloud services.

Core Features & Use Cases

  • Docker Deployment: Guides users through setting up n8n with Docker and Docker Compose.
  • Database Configuration: Provides instructions for configuring PostgreSQL for production use.
  • Scaling Strategies: Details how to implement queue mode and worker scaling for high-volume execution.
  • Use Case: A user wants to run n8n on their own infrastructure for better control and cost management. This skill provides the exact steps to set up a robust, scalable, self-hosted n8n environment.

Quick Start

Use the n8n-self-hosting skill to set up n8n with Docker and PostgreSQL.

Frequently Asked Questions about n8n-self-hosting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I deploy n8n with Docker and PostgreSQL for production use?

Deploying n8n with Docker involves using Docker Compose to orchestrate containers, configuring a PostgreSQL database for persistent data, and setting critical environment variables to ensure reliable workflow automation in production.

What is queue mode in n8n and when do I need it for scaling?

Queue mode in n8n is a scaling strategy that uses worker nodes to process workflows concurrently. You need it when handling high-volume execution loads to optimize reliability and prevent bottlenecks on your self-hosted instance.

Can I use Docker Compose to scale self-hosted n8n instances horizontally?

Yes, you can use Docker Compose to scale self-hosted n8n instances horizontally by implementing queue mode, which separates the main n8n process from worker nodes to handle increased workflow execution volume efficiently.

What environment variables and reverse proxy configurations are needed for n8n self-hosting?

Self-hosting n8n requires setting critical environment variables for database connections and execution limits, alongside reverse proxy configuration to manage external access and secure your production-ready Docker infrastructure.

Does self-hosting n8n with Docker work better than cloud services for cost management?

Self-hosting n8n with Docker provides better control and cost management compared to cloud services by allowing you to optimize infrastructure reliability and cost-efficiency based on your specific automation execution volume.

What are the limitations of running n8n in queue mode with PostgreSQL?

Running n8n in queue mode with PostgreSQL requires careful infrastructure setup to manage database connections and worker scaling limits, ensuring that high-volume workflow execution does not overwhelm the self-hosted Docker environment.