Skip to content
NEWError doctor and Watchtower: failed n8n runs explained in plain words, and emailed to you. See what is new

Library / Code, Git & Developer Tools

Code, Git & Developer Tools

Update n8n Docker Installation Automatically via SSH

On a schedule or when you run it, it connects over SSH, pulls the latest n8n image with docker compose, restarts it and reports the version to Telegram.

What it does

## Default Variables Before starting, please set the following variables: - working-directory: The directory where your docker-compose.yml file is located. - n8n-container-name: The name of your n8n Docker container. - telegram-id: Your Telegram chat ID. You can find it by messaging @get_id_bot on Telegram.

The steps

  1. Pull n8n Image
  2. docker compose pull
  3. check n8n installed version
  4. When clicking ‘Test workflow’
  5. Schedule Trigger
  6. docker compose up
  7. Set Default variable
  8. Github HTTP Request
  9. Merge Results
  10. Edit Version String
  11. Comapre Two Input
  12. Telegram Notif
  13. Telegram Approve
  14. Telegram Notif1

27 steps in total.

Similar automations