Deploy the powerful workflow automation platform n8n to DigitalOcean App Platform.
Best for: Personal use, testing, small workloads
- ✅ One-click deployment
- ✅ Single instance (UI + API + execution)
- ✅ PostgreSQL database
- ✅ SSL/TLS included
Prerequisites: (
- Generate n8n encryption key:
openssl rand -base64 32. ReplaceN8N_ENCRYPTION_KEYenv variable in template(doctl) or app(UI)
Best for: Teams, scalability, growing workloads
- 🔄 Main + Worker architecture
- 🔴 Redis job queue
- 📈 Horizontal scaling (add workers)
- 💪 PostgreSQL + Redis databases
Prerequisites: (
- Generate n8n encryption key:
openssl rand -base64 32. ReplaceN8N_ENCRYPTION_KEYenv variable in template(doctl) or app(UI) - Create PostgreSQL:
doctl databases create n8n-postgres --engine pg --version 17 --region <region> --size db-s-1vcpu-1gb - Create Redis:
doctl databases create n8n-redis --engine valkey --version 8 --region <region> --size db-s-1vcpu-1gb
Best for: JavaScript/Python code execution, security
- 🏃 Code execution in sandbox
- 🛡️ Secure isolation for Code nodes
- ⚙️ Single instance + runners
Prerequisites: (
- Generate n8n encryption key:
openssl rand -base64 32. ReplaceN8N_ENCRYPTION_KEYenv variable in template(doctl) or app(UI) - Generate n8n runner token:
openssl rand -base64 32. ReplaceN8N_RUNNERS_AUTH_TOKENenv variable in template(doctl) or app(UI) - Create PostgreSQL:
doctl databases create n8n-postgres --engine pg --version 17 --region <region> --size db-s-1vcpu-1gb
📖 Deploy With Runners | 📄 Spec
Best for: Enterprise workloads, code-heavy, HA
- 🎯 Queue + Workers + Runners
- 📊 Auto-scaling capable
- 🔄 High availability
- 💪 Full production stack
Prerequisites: (
- Generate n8n encryption key:
openssl rand -base64 32. ReplaceN8N_ENCRYPTION_KEYenv variable in template(doctl) or app(UI) - Generate n8n runner token:
openssl rand -base64 32. ReplaceN8N_RUNNERS_AUTH_TOKENenv variable in template(doctl) or app(UI) - Create PostgreSQL:
doctl databases create n8n-postgres --engine pg --version 17 --region <region> --size db-s-1vcpu-1gb - Create Redis:
doctl databases create n8n-redis --engine valkey --version 8 --region <region> --size db-s-1vcpu-1gb
For detailed pricing information based on instance sizes and resources, visit the DigitalOcean App Platform Pricing page.
- Click "Deploy to DO" button above
- Generate encryption key:
openssl rand -base64 32 - Replace
N8N_ENCRYPTION_KEYin app env variables - Click "Create App", wait for app to deploy
- Access at your app URL
# Queue Mode
doctl apps create --spec .do/examples/queue-mode.yaml
# With Runners
doctl apps create --spec .do/examples/with-runners.yaml
# Production
doctl apps create --spec .do/examples/production.yamlNeed help deciding? See SCALING.md
Important for Production Deployments:
App Platform uses ephemeral storage - files are lost on container restart. For production use:
- ✅ Database stores: workflows, credentials, execution history (persistent)
- ❌ Container stores: binary files, custom nodes, uploads (ephemeral)
Recommendation: Configure DigitalOcean Spaces ($5/month) for persistent file storage if:
- Workflows handle file uploads/downloads
- Using custom community nodes
- Processing binary data (images, PDFs, etc.)
Quick Setup (5 minutes):
- Create a Space via DigitalOcean Control Panel
- Generate access keys:
doctl spaces keys create n8n-storage-key - Add credentials to your app spec - see PRODUCTION.md for full config
📖 Full guide: Persistent Storage Setup
n8n is a fair-code licensed workflow automation tool - an open-source alternative to Zapier that you can self-host.
- 🔌 400+ integrations (Google, Slack, GitHub, etc.)
- 🎨 Visual workflow builder
- 🤖 AI capabilities with LangChain
- 🔐 Self-hosted - you own your data
- 💰 Free for personal use
- Deployment Guide - Step-by-step deployment
- Environment Variables - Configuration reference
- Scaling Guide - When and how to scale
- Production Setup - Security & best practices
- Version Info - Updates & versioning
- Simple Mode - Default deployment
- Queue Mode - Scalable architecture
- Production Setup - Enterprise deployment
- n8n v1.122.2 (latest stable)
- PostgreSQL 17 database (persistent storage)
- SSL/TLS encryption
- Automated backups
- Health monitoring
- Optional: Spaces for persistent file storage ($5/month)
- Automate repetitive tasks
- Sync data between apps
- Build custom API integrations
- Schedule automated reports
- Create webhook listeners
- Build AI-powered workflows
- n8n Docs: docs.n8n.io
- Community: community.n8n.io
- Templates: n8n.io/workflows
- Issues: GitHub
Ready to automate? Choose your tier above and start building workflows! 🚀