A complete and secure n8n
automation stack using Docker Compose. This setup includes:
- ✅ PostgreSQL for workflow and credential storage
- ✅ Qdrant for vector DB / AI use cases
- ✅ NGINX reverse proxy with local HTTPS via Let's Encrypt
- ✅ Cloudflare Tunnel for secure public access (no port forwarding needed)
Everything starts with a single command:
docker compose up -d
Service | Description |
---|---|
n8n |
Workflow automation platform |
PostgreSQL |
Backend DB for persistent workflow storage |
Qdrant |
Vector DB for advanced AI/search integrations |
NGINX |
Local reverse proxy with automatic SSL using Let's Encrypt |
Cloudflared |
Secure tunnel to expose n8n publicly (no need to open ports!) |
You can choose how you want to access your n8n:
Use Case | NGINX | Cloudflare Tunnel |
---|---|---|
Home lab only | ✅ | ❌ |
Remote access securely | ✅ | ✅ |
Avoid router configuration | ❌ | ✅ |
Maximum flexibility | ✅ | ✅ |
💡 If you only want local access, you can disable/remove the
cloudflared
service.
💡 If you only want remote access, you can remove thenginx
andacme-companion
services.
If you're interested in automation, self-hosting, or network security, check out my top-rated courses:
🎯 Mastering n8n Automation
💡 Learn how to self-host, build advanced workflows, and integrate APIs with ease.
🛡️ pfSense Firewall Complete Guide
Secure your network using open-source pfSense with hands-on labs and real-world use cases.
🖥️ Proxmox Virtualization Mastery
Build and manage your own homelab or production-grade virtualization platform with Proxmox.
🧠 AI Automation Mastery with Low-Code
Create intelligent workflows with AI models, agents, and automation tools.
👨💼 Generative AI for Leaders
Perfect for decision-makers looking to leverage AI for innovation and business transformation.
📦 Untangle Firewall (Arista) Security
Learn NGFW with real-world scenarios to secure your small business or homelab network.
git clone https://github.com/yourusername/n8n-docker-stack.git
cd n8n-docker-stack
docker compose up -d
Make sure you:
- Update your domain in
.env
or directly indocker-compose.yml
- Replace the Cloudflare token (if using the tunnel)
- Point your domain (e.g.,
n8n.syncbricks.com
) to your server
Feel free to open issues, suggest improvements, or fork the project.
🔐 Secure. 🔧 Flexible. 🌍 Accessible.
Deploy your automation like a pro.