# Auto-update n8n instance(self hosted) with Coolify (and similar service)

**URL:** <https://community.n8n.io/t/auto-update-n8n-instance-self-hosted-with-coolify-and-similar-service/182440>\
**Category:** Built with n8n\
**Created:** [September 5, 2025, 7:12am UTC](https://community.n8n.io/t/auto-update-n8n-instance-self-hosted-with-coolify-and-similar-service/182440 "2025-09-05T07:12:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mredodos](https://dub1.discourse-cdn.com/n8n/user_avatar/community.n8n.io/mredodos/32/49280_2.png) [@mredodos](https://community.n8n.io/u/mredodos)\
**Post date:** [September 5, 2025, 7:12am UTC](https://community.n8n.io/t/auto-update-n8n-instance-self-hosted-with-coolify-and-similar-service/182440/1 "2025-09-05T07:12:57Z")

</div>

Hi everyone,

I’m sharing a workflow template that helps **self-hosted n8n admins** keep their instance always updated to the latest stable release — fully automated through **Coolify**.

* * *

### 🎯 What it does

- Fetches your **current n8n version** from your instance
- Fetches the **latest release version** from GitHub
- Compares the two values
- If different → triggers a **Coolify deploy** to update
- If identical → stops with no operation

* * *

### 👥 Who’s it for

Anyone running **self-hosted n8n with Coolify (or a similar service)** who wants to avoid manual checks and keep deployments consistent.

* * *

### ⚙ How it works

1. **Trigger** manually or via schedule
2. **HTTP Request (n8n settings)** → gets `versionCli`
3. **HTTP Request (GitHub)** → gets `name` (e.g., `n8n@1.60.0`)
4. **Merge (SQL)** → keeps only the fields needed
5. **Set** → normalizes variable names
6. **IF** → compares current vs latest version
  - If different → **Deploy update**
  - If same → **No-Op**

* * *

### 🛠 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** with a valid Coolify API token
- Adjust the schedule trigger interval (e.g., every 6h)

* * *

### ✅ Requirements

- A self-hosted n8n instance with `/rest/settings` endpoint accessible
- Coolify (or alternative deploy service) managing the n8n app
- Valid API token stored in n8n credentials

* * *

Would love your feedback — do you think this could be useful in your self-hosted setups?

> **[Automatic self-hosted application updates with Coolify deployments | n8n...](https://n8n.io/workflows/8118-automatic-self-hosted-application-updates-with-coolify-deployments/?ps_partner_key=ZWRvYXJkb2d1enppOTIzOA&ps_xid=LUzFk934wpUwsF&gsxid=LUzFk934wpUwsF&gspk=ZWRvYXJkb2d1enppOTIzOA)**
>
> 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...
