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.

0
Downloads
0
Views
6.91
Quality Score
beginner
Complexity
Author:Edoardo Guzzi(View Original →)
Created:9/10/2025
Updated:10/5/2025

🔒 Please log in to import templates to n8n and favorite templates

Workflow Visualization

Loading...

Preparing workflow renderer

Comments (0)

Login to post comments