Back to Templates

Update self‑hosted instance via GitHub, Coolify and Mattermost

Created by

Created by: Joe Castle || joe-castle
Joe Castle

Last update

Last update 5 days ago

Categories

Share


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

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