Library
N8N Foundation · Chapter 8 of 10
Chapter 08

Deploying to
Production

From laptop to a hardened VPS with backups, SSL, monitoring, and a launch checklist.

DeployOps
A Handbook For Builders
Deploying to
Production
Chapter 08
The Claude Code Handbook

A workflow no one can reach is not a product.

Section 1

1. Where to Deploy

  • n8n Cloud — zero ops.
  • Railway / Render — one-click.
  • DigitalOcean / Hetzner — full control.
Section 2

2. Docker Compose

bashclaude-code
docker compose up -d
Section 3

3. VPS + Nginx + SSL

bashclaude-code
sudo certbot --nginx -d n8n.example.com
Section 4

4. Backups

bashclaude-code
0 2 * * * pg_dump -U n8n n8n | gzip > /backups/n8n-$(date +%F).sql.gz
Section 5

5. Monitoring

  • Uptime pings (Better Stack, UptimeRobot).
  • Slack error webhook.
  • Weekly execution volume review.
Section 6

6. Security

  1. Basic auth on the editor.
  2. Firewall — only 80/443 open.
  3. Rotate the encryption key never; back it up always.
  4. Least-privilege API keys per credential.
Section 7

7. Launch Checklist