Self-Hosted N8N – Github Repo
I recently created a Selfhosted N8N Git repository that allows me to share with my team (and use for myself) a self-hosted N8N instance. I can run it locally or in the cloud, using Docker, PostgreSQL, Redis, and Caddy.
Why n8n?
n8n is an amazing tool for automation. Out of the box, it lets you:
- Automate workflows between services
- Build ETL pipelines
- Integrate AI into real business processes
The cloud service at n8n.io is fantastic if you want quick hosting without infrastructure concerns. But for teams (like ours) who need flexibility, control, and data locality, self-hosting is the way to go.
Why Self-Host n8n?
Self-hosting n8n gives you:
- Full control over data, architecture, and cost
- Private integrations with internal systems behind your firewall
- Compliance alignment with industry and client requirements
- Scalability with predictable spend—no surprise usage bills
- Flexibility to customize: enable community nodes and MCP tools for AI workflows
With Docker deployment is straightforward, and you can automate updates, add resilience, and build consistency across local and production environments.
My Setup
I’ve created an open-source repo that includes everything you need to spin up n8n with Docker, PostgreSQL, Redis, and Caddy.
👉 jimiz12/n8n-docker-postgresql
This setup provides:
- PostgreSQL for persistence
- Redis for queue handling
- Caddy for HTTPS and reverse proxy
- Profiles for local development vs. production
Prerequisites
Before you get started, make sure you have:
- Docker installed
- Docker Compose installed
- Git installed
Local Development
Spin up n8n locally in seconds: