Update self‑hosted instance via GitHub, Coolify and Mattermost

Go to Workflow
0 views
Built by Joe Castle Joe Castle
Created on June 10, 2026

Description

Who is it for
Self-hosters running n8n on Coolify who want to keep their instance up to date without manual checks or downtime surprises.

How it works
The workflow runs on a weekly schedule and uses the built-in n8n Security Audit to check whether your instance is outdated. If a newer version is available, it fetches the latest stable release tag from the GitHub API and triggers a service restart via the Coolify API — pulling the latest image automatically. A Mattermost notification confirms the successful update.

Requirements
Self-hosted n8n instance (managed via Coolify)
n8n API key (Settings → API → Generate Key)
Coolify API token (Settings → API Tokens)
Mattermost instance (optional — replace or remove the last node)

How to set up
Create an n8n API credential and assign it to the GET audit node.
Create an HTTP Bearer Auth credential with your Coolify token and assign it to the CALL Coolify node.
Replace <your-coolify-domain> and <APP_UUID> in the Coolify node URL.
Optionally configure the Mattermost node with your URL, token and channel ID.

Nodes Used (1)

HTTP Request
n8n-nodes-base.httpRequest