Automatic Self-Hosted Application Updates with Coolify Deployments
## Auto-update n8n instance with Coolify ### Who's it for This workflow is designed for **self-hosted n8n administrators** who want to keep their instance automatically updated to the latest stable release. It removes the need for manual version checks and ensures deployments are always up to date. ### What it does The workflow checks your **current n8n version** against the **latest GitHub release**. If a mismatch is detected, it triggers a **Coolify deployment** to update your instance. If both versions match, the workflow ends safely without action. ### How it works 1. **Trigger**: Start manually or on a schedule. 2. **HTTP Request (n8n settings)**: Fetches your current version (`versionCli`). 3. **HTTP Request (GitHub)**: Fetches the latest n8n release (`name`). 4. **Merge (SQL)**: Keeps only the two fields needed. 5. **Set (Normalize)**: Converts values into comparable variables. 6. **IF Check**: Compares current vs latest version. - If different → Deploy update. - If same → Stop with no operation. 7. **HTTP Request (Coolify)**: Triggers a forced redeploy via API. ### How to set up - Replace `https://yourn8ndomain/rest/settings` with your own **n8n domain**. - Replace the Coolify API URL with your **Coolify domain + app UUID**. - Add an **HTTP Bearer credential** containing your Coolify API token. - Adjust the schedule interval (e.g., every 6 hours). ### Requirements - Self-hosted n8n instance with `/rest/settings` endpoint accessible. - Coolify (or a similar service) managing your n8n deployment. - Valid API token configured as Bearer credential in n8n. ### How to customize - Change the schedule frequency depending on how often you want checks. - Modify the IF condition if you want stricter or looser version matching (e.g., ignore patch versions). - Replace Coolify API call with another service (like Docker, Portainer, or Kubernetes) if you use a different deployment method.
- Platform
- n8n
- Category
- Development & IT
- Price
- $14.99
- Creator
- Edoardo Guzzi
- if
- set
- noOp
- merge
- stickyNote
- httpRequest
- manualTrigger
- scheduleTrigger
How to import this workflow into n8n
- 1Purchase or download the workflow to get the n8n workflow JSON file.
- 2In your n8n instance, open Workflows and choose "Import from File" (or paste the JSON with Ctrl+V on the canvas).
- 3Open each node marked with a credential warning and connect your own accounts and API keys.
- 4Run the workflow once manually to verify the data flow, then toggle it to Active.
Related Development & IT workflows
- Create daily historical AI videos with Gemini, fal.ai, Telegram and YouTube$14.99
- Advanced multi-agent AI personal assistant with 250+ task capabilities (WhatsApp + GPT)$2.99
- Send Organized Security CVE Digests from NVD with AI-Polished Summaries to Gmail$4.99
- Learn n8n basics in 3 easy steps ✨$14.99
- Automated multi-platform sales agent with RAG, CRM & payment processing$2.99
- Version Control n8n Workflows in GitLab with Custom and Organization$14.99
More from Edoardo Guzzi
Need this deployed? We'll set it up for you.
Our automation experts deploy this workflow in your stack, connect your accounts, and verify it works — or build a custom solution from scratch.