n8n-self-hosting - Deploy self-hosted n8n on Linux using Docker Compose
Deploy, configure, and maintain a self-hosted n8n instance on a Linux VM using Docker Compose behind Caddy with automatic HTTPS.
Tags
Updated: 2026-09-21Capabilities
Typical Inputs
Typical Outputs
What this skill does
- Deploy single or queue mode n8n
- Install Docker and Docker Compose plugin
- Generate fresh secrets and encryption key
- Configure Caddy reverse proxy with HTTPS
- Configure host firewall for web ports
- Verify instance health and TLS status
- Update backup restore and harden n8n
Inputs
- SSH target and authentication credentials
- Domain name and subdomain
- TLS email address for Let's Encrypt
- IANA timezone name
- Deployment mode choice
Outputs
- Deployed n8n web interface URL
- Docker Compose configuration files
- Generated .env file with secrets
- n8n encryption key
- Issued TLS certificate
Requirements
- Fresh Linux VM running Ubuntu or Debian
- Root or sudo SSH access
- Publicly accessible ports 80 and 443
- DNS A record pointing to VM IP
- Docker Engine and Compose plugin
