Self-Hosting & DevOps

Self-Hosting & DevOps · 12 lessons

Docker Compose, TLS, Kubernetes, monitoring, IaC and zero-downtime deploys for running n8n on your own infrastructure.

Start lesson 1
  1. 1Docker Compose stack from scratchn8n + Postgres + a reverse proxy, wired together with a single compose file.35 min
  2. 2TLS with Caddy or TraefikAutomatic HTTPS certificates and reverse-proxy routing for your n8n domain.30 min
  3. 3Environment variables & configurationThe essential N8N_* variables for security, webhooks, timezone and executions.20 min
  4. 4Deploying on a VPS (Hostinger/DigitalOcean)A repeatable, scripted deploy to a $6-12/month VPS with firewall and SSH hardening.40 min
  5. 5Kubernetes deployment basicsHelm chart structure, persistent volumes, and secrets management for n8n on k8s.45 min
  6. 6Reverse proxies & webhook edge casesFix broken webhook URLs, header forwarding and body-size limits behind a proxy.25 min
  7. 7Upgrading n8n safelyRead release notes, snapshot first, and roll back if a migration fails.20 min
  8. 8Monitoring uptime & alertingUptime Kuma or a status page, paired with Slack/PagerDuty alerts on downtime.25 min
  9. 9Infrastructure as code (Terraform)Reproducible n8n infra: VPС/VM, DNS and database provisioned entirely from code.40 min
  10. 10Cost optimization for self-hosted n8nRight-size VPS instances, prune execution data, and pick the cheapest reliable Postgres.20 min
  11. 11Security hardening checklistA practical checklist: encryption key rotation, user management, network policy, audit logs.30 min
  12. 12DevOps capstone: zero-downtime deploy pipelineBlue/green or rolling deploys for n8n upgrades with automated smoke tests.60 min