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
Trigger: Start manually or on a schedule.
HTTP Request (n8n settings): Fetches your current version (versionCli).
HTTP Request (GitHub): Fetches the latest n8n release (name).
Merge (SQL): Keeps only the two fields needed.
Set (Normalize): Converts values into comparable variables.
IF Check: Compares current vs latest version.
If different → Deploy update.
If same → Stop with no operation.
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.
Related Templates
AI Agent: Scrape, Summarize & Save Articles to Notion (Gemini, Browserless)
This n8n workflow automates the process of saving web articles or links shared in a chat conversation directly into a No...
USDT And TRC20 Wallet Tracker API Workflow for n8n
Overview This n8n workflow is specifically designed to monitor USDT TRC20 transactions within a specified wallet. It u...
Send structured logs to BetterStack from any workflow using HTTP Request
Send structured logs to BetterStack from any workflow using HTTP Request Who is this for? This workflow is perfect for...
🔒 Please log in to import templates to n8n and favorite templates
Workflow Visualization
Loading...
Preparing workflow renderer
Comments (0)
Login to post comments