Production-ready Docker deployment setups and community workflows for n8n
Helping the n8n community with robust deployment infrastructure and powerful automation workflows
This repository provides two essential resources for the n8n community:
Production-ready Docker Compose configuration for self-hosting n8n with:
- PostgreSQL 16 for data persistence
- Redis 7 for queue management (Bull/BullMQ)
- Scalable workers (horizontal scaling with replicas)
- Health checks on all services
- Security best practices documented
- Comprehensive documentation with architecture diagrams
👉 Get Started with Docker Setup →
Ready-to-use n8n workflows for common automation scenarios:
Automated AI-powered LinkedIn content creation pipeline featuring:
- AI Research with Firecrawl API
- Dual Content Variations with LLM (GPT/Claude)
- AI Image Generation with DALL-E/Stable Diffusion
- Email Review System with webhook approvals
- Google Drive Integration for content storage
- 12-Stage Pipeline with automatic retries
Image Generation with Gemini (3 Workflows)
Professional infographic creation using Google Gemini:
Basic Text-to-Image - Simple prompt → image (perfect for beginners)
Web Search + Image - Research → enriched prompt → contextual image
Enhanced Prompt Engineering - AI analyzes content → auto-selects style → professional infographic (production-ready)
# Clone this repository
git clone https://github.com/YOUR_USERNAME/n8n-selfhosting-workflows.git
cd n8n-selfhosting-workflows/n8n-selfhosting/docker
# Copy environment template
cp .env-example .env
# Edit .env with your configuration
nano .env
# Launch n8n stack
docker compose up -d
# Access n8n at http://localhost:5678# Navigate to the workflow you want
cd n8n-workflows/linkedin-post-content-generator
# Read the comprehensive setup guide
cat README.md
# Import the workflow JSON into your n8n instance
# Follow the README for complete configuration stepsn8n-selfhosting-workflows/
│
├── 📁 n8n-selfhosting/ # Docker deployment infrastructure
│ └── docker/ # Production-ready Docker Compose setup
│ └── README.md # Complete installation guide (794 lines)
│
├── 📁 n8n-workflows/ # Community automation workflows
│ ├── image-generation/ # Image generation workflows (3 workflows)
│ ├── linkedin-post-content-generator/ # LinkedIn content automation
│ └── README.md # Workflows overview and comparison
│
├── LICENSE
└── README.md # This file
💡 Note: Each workflow folder contains its own JSON file, documentation, and setup guides. Browse n8n-workflows/ to explore all available workflows.
- ✅ Production-ready Docker Compose setup
- ✅ Scalable architecture with worker replicas
- ✅ Database persistence (PostgreSQL)
- ✅ Queue management (Redis)
- ✅ Health monitoring and troubleshooting guides
- ✅ Automated LinkedIn content generation
- ✅ AI-powered research and writing
- ✅ Image generation with AI
- ✅ Review and approval workflows
- ✅ Content organization in Google Drive
- ✅ Learn from production-tested configurations
- ✅ Reusable workflow templates
- ✅ Best practices for self-hosting
- ✅ Security-first approach
- ✅ Comprehensive documentation
- ✅ Complex workflow examples (12-stage pipeline)
- ✅ API integrations (Google, Firecrawl, LLMs)
- ✅ Webhook implementations
- ✅ Error handling patterns
- ✅ State management examples
- 🔐 Security First: No hardcoded credentials, .gitignore configured
- 📊 Scalable: Horizontal worker scaling with single command
- 🏗️ Production-Ready: Health checks, restart policies, resource limits
- 📖 Well-Documented: 794 lines of setup and troubleshooting guides
- 🎨 Architecture Diagrams: Visual representations of system flow
- 🤖 AI-Powered: Integrates with GPT, Claude, DALL-E, Stable Diffusion
- 🔄 Robust Pipeline: 12 stages with automatic error handling
- 📧 Review System: Email notifications with webhook approvals
- 💾 Organized Storage: Google Drive folder structure per post
- 🎯 Production-Tested: Used in real content creation workflows
Both components feature comprehensive, production-grade documentation:
| Component | Lines | Words | Diagrams | Guides | Troubleshooting |
|---|---|---|---|---|---|
| Docker Setup | 794 | ~8,000 | 3 | Setup, Config, Security | 8 scenarios |
| LinkedIn Workflow | 850+ | ~12,000 | 1 | 5 API setups, Config | 10 scenarios |
| Total | 1,600+ | ~20,000 | 4 | Multiple | 18 scenarios |
- Docker Compose - Container orchestration
- PostgreSQL 16 - Primary database
- Redis 7 - Job queue (Bull/BullMQ)
- n8n 1.123.28+ - Workflow automation platform
- Google Drive API - File storage
- Google Sheets API - Pipeline state management
- Gmail API - Email notifications
- Firecrawl API - Web research
- Azure OpenAI / OpenAI / Claude - LLM content generation
- DALL-E / Stable Diffusion - AI image generation
✅ All personal information removed
- No hardcoded credentials or API keys
- Generic placeholders for all IDs
- Environment-based configuration
- .gitignore protects sensitive files
✅ Best practices documented
- Strong password generation
- Basic authentication setup
- Environment isolation
- Secure credential storage in n8n
✅ Safe for public sharing
- Community-reviewed configurations
- No exposed personal data
- Security checklists included
Contributions are welcome! Whether you want to:
- 🐛 Report a bug or issue
- 💡 Suggest a feature or improvement
- 📖 Improve documentation
- 🔧 Submit a workflow or enhancement
- ⭐ Share your use case
Feel free to:
- Open an issue for discussion
- Fork the repository
- Create a pull request
- Share your feedback
This repository is provided as-is for community use. Feel free to:
- ✅ Use in personal or commercial projects
- ✅ Modify and customize for your needs
- ✅ Share with the n8n community
- ✅ Learn and build upon these examples
If this repository helps you:
- ⭐ Star the repository to show support
- 🔄 Share with others in the n8n community
- 💬 Provide feedback on what works or needs improvement
- 🤝 Contribute your own workflows or enhancements
- 🌐 n8n.io - Official website
- 📖 n8n Documentation - Official docs
- 💬 n8n Community Forum - Community support
- 🐙 n8n GitHub - Source code
- 🐳 Docker Setup Guide - Self-hosting documentation
- 🤖 LinkedIn Workflow - Workflow documentation
- 📋 Implementation Plan - Project roadmap
- ✅ TODO List - Task tracking and status
- Self-host n8n for your organization
- Deploy n8n with horizontal scaling
- Run n8n in production environments
- Set up development/staging environments
- Learn Docker Compose best practices
- Automate LinkedIn content creation
- Generate AI-powered social media posts
- Manage content review and approval
- Organize content assets in Drive
- Schedule post creation pipelines
- OS: Linux, macOS, Windows (with WSL2)
- Docker: 20.10+
- Docker Compose: v2.0+
- RAM: 4GB minimum, 8GB recommended
- Storage: 10GB minimum for volumes
- n8n Instance: Self-hosted or cloud
- API Keys: Based on workflow requirements
- Google Account: For Drive/Sheets/Gmail integrations
- LLM API Access: OpenAI, Azure OpenAI, or Claude
- Image API: DALL-E or Stable Diffusion
Choose your path:
Start here → Docker Setup Guide
Start here → Workflows Directory
Browse the Documentation folder
Made with ❤️ for the n8n community
Help others automate their workflows!
If this helps you, consider ⭐ starring the repository
Questions? Open an issue | Ideas? Submit a PR | Success story? Share it!