How to Self-Host n8n 100% Locally and Never Pay Monthly Fees Again
Most businesses waste hundreds per month on cloud automation platforms when they could run n8n completely free on their own hardware. This step-by-step guide shows you how to install, configure, and maintain your own self-hosted automation server that never charges per task or limits your workflows.
The Hidden Cost of Cloud Automation
Most businesses don't realize how quickly automation platform fees add up. Commercial services like Zapier and Make.com charge $20-$100/month per user, plus additional fees for premium apps or exceeding task limits. Over a year, these costs often exceed $1,000-$2,000 for a single user.
The alternative? Self-hosting n8n locally eliminates all platform fees while maintaining full functionality. You keep all your automation data private, avoid API rate limits, and gain unlimited workflow executions - all without monthly payments.
Key savings: A self-hosted n8n instance typically pays for itself in 2-3 months compared to commercial automation services, then continues saving $1,200+ annually.
Step 1: Docker Installation
Docker provides the containerization technology that makes self-hosting n8n simple and portable. The installation process varies slightly by operating system:
For Windows/Mac:
- Download Docker Desktop from docker.com
- Run the installer with default settings
- Launch Docker Desktop after installation
For Linux:
- Install Docker Engine via your package manager
- Add your user to the docker group
- Enable and start the Docker service
Verify Docker is running by checking for the Docker icon in your system tray (Windows/Mac) or running docker --version in terminal (Linux). At 2:15 in the video tutorial, you can see the Docker icon active in the Mac menu bar.
Step 2: Starting the Stack
With Docker running, we'll deploy n8n using three configuration files:
- docker-compose.yml - Defines the n8n service and database
- Dockerfile - Customizes the n8n container
- nent-taskr-runner.json - Configures execution environments
Place all three files in a dedicated directory, then run:
docker compose up This command (shown at 4:30 in the video) downloads the required images and starts the containers. First-time setup may take several minutes as Docker downloads the base images.
Note: The n8n web interface will be available at http://localhost:5678 once the containers are running.
Step 3: n8n Initial Setup
When you first access your n8n instance, you'll complete a simple setup wizard:
- Create an admin user with secure credentials
- Request a free license key (optional but recommended)
- Activate the license in Settings → Usage & Plan
The license (shown being activated at 7:45) unlocks quality-of-life features like custom folders and additional execution modes. While not required for core functionality, we recommend activating it for the best experience.
Step 4: Creating Your First Workflow
At 9:20 in the video, we begin building a practical workflow that:
- Accepts natural language queries via chat
- Searches the web using AI
- Stores results in n8n's built-in database
Key components:
- Chat Trigger Node: Receives user input
- AI Agent Node: Processes queries and performs web searches
- Code Node: Formats results for storage
Pro Tip: Configure your AI agent to return structured data (title, URL, snippet) for easier processing.
Step 5: Data Persistence Setup
n8n includes a simple database system called Data Tables for storing workflow outputs. At 12:50, we:
- Create a new table with columns for title, URL, and snippet
- Add a Data Table node to our workflow
- Map the formatted data from our Code node to the table columns
This creates a persistent search history that remains available even after restarting your n8n instance. The video shows the completed table with multiple search results at 14:30.
Step 6: Testing the Complete Workflow
With all nodes connected, we test the end-to-end workflow:
- Submit a search query via chat ("latest news on Claude")
- Verify the AI agent retrieves relevant results
- Confirm data appears correctly in the table
The video demonstrates this testing process starting at 15:40, showing how the workflow handles multiple queries and populates the database table.
Note: The workflow remains inactive until published - which we cover in the final step.
Step 7: Activation in n8n 2.0+
n8n 2.0 introduced a publish/version system for workflows. To make your workflow permanently active:
- Click "Publish" in the workflow editor
- Set an initial version number (1.0 recommended)
- Add a descriptive comment
- Click "Publish" to activate
Once published (shown at 17:00), your workflow becomes available in n8n's Chat Hub interface, allowing natural language interaction without manually triggering executions.
Watch the Full Tutorial
For visual learners, the complete 13-minute walkthrough shows each step in real-time, including troubleshooting tips and advanced configuration options not covered in this article. Pay special attention to the Docker setup at 2:15 and workflow testing at 15:40.
Key Takeaways
Self-hosting n8n provides businesses complete control over their automation infrastructure while eliminating recurring platform fees. The setup process is simpler than most expect, with Docker handling the heavy lifting of container management.
In summary: For less than an hour of setup time, you can deploy a fully-featured automation platform that saves $1,200+ annually compared to commercial services like Zapier or Make.com.
Frequently Asked Questions
Common questions about self-hosting n8n
Self-hosting n8n eliminates all monthly automation platform fees while giving you complete control over your data and workflows. Unlike cloud services like Zapier or Make.com, a local installation means you'll never pay per task or hit API limits.
The setup pays for itself in 2-3 months compared to commercial automation services, then continues saving money indefinitely. You also benefit from:
- No restrictions on workflow complexity
- Complete data privacy
- Ability to run unlimited executions
You can run n8n locally on any modern computer with Docker installed. The minimum requirements are:
- 2 CPU cores (4 recommended for production)
- 4GB RAM (8GB for heavier workloads)
- 10GB storage (more if storing large datasets)
The Docker container typically uses about 500MB-1GB of memory during operation. For teams or complex workflows, consider a dedicated machine or cloud VM.
Maintenance is minimal once set up. Docker handles automatic updates for the n8n container when configured properly.
The most common maintenance tasks include:
- Occasional database backups
- Updating your Docker compose file for major n8n versions
- Monitoring resource usage if adding many workflows
The setup in this guide includes automatic restart policies so your workflows recover from power outages or system reboots.
Yes. Self-hosting n8n doesn't prevent you from connecting to cloud services. You can still integrate with platforms like:
- OpenAI for AI capabilities
- Google Sheets for spreadsheets
- Shopify for ecommerce
- Any service with an API
The difference is you're not paying n8n's platform fees - only the API costs of the services you choose to connect. This often results in significant savings.
While the default setup runs on localhost, you can expose your n8n instance securely using several methods:
- SSH tunneling - Secure port forwarding
- VPN - Connect to your network first
- Reverse proxy - Nginx with SSL encryption
For production use, we recommend hosting on a cloud VM with proper firewall rules rather than exposing your home network. This provides better security and uptime.
The Docker compose file in this guide includes restart policies that automatically bring your n8n instance back online when power is restored.
For critical workflows:
- Consider running on a dedicated machine or cloud VM
- Configure workflows to catch up on missed executions
- Use n8n's built-in retry mechanisms for API calls
Scheduled workflows may miss triggers during downtime but can be configured to process backlogged items when restored.
Yes. You can create multiple user accounts in your self-hosted n8n instance just like the cloud version. Each user can have different permission levels.
The main limitations are:
- All users must be on the same local network
- Performance may degrade with 5+ simultaneous users
- No built-in SSO in the open-source version
For teams larger than 5-10 users, consider a cloud VM for better performance and easier remote access.
GrowwStacks specializes in custom automation solutions including self-hosted n8n deployments. Our implementation services include:
- Custom configuration tailored to your infrastructure
- Workflow migration from Zapier/Make.com
- Team training on n8n best practices
- Ongoing support for maintenance and updates
We offer free 30-minute consultations to assess your automation needs and provide a customized implementation plan.
Ready to Eliminate Your Automation Fees?
Every month you delay self-hosting costs your business $100+ in unnecessary platform fees. GrowwStacks can have your custom n8n instance running in under 2 hours - complete with migrated workflows and team training.