Automate docker container updates with Telegram approval system
Who is this for? This workflow is for DevOps engineers, system administrators, and Docker users who want to automate the process of checking for updates, ver...
🔌 Nodes & Integrations Used (3)
📖 Implementation & Setup Guide
#### Who is this for? This workflow is for DevOps engineers, system administrators, and Docker users who want to automate the process of checking for updates, verifying them, and applying updates to their Docker-based deployment in a controlled manner. For example, this workflow is used to update the n8n Docker image.
#### What does this workflow do? - Fetches the latest Docker image version from GitHub. - Compares it with the currently running version on the server. - Sends a Telegram message requesting confirmation if an update is available. - If confirmed, pulls the latest n8n Docker image, updates the container, and restarts it. - Sends a Telegram message confirming the update is completed. - Schedules automatic checks, Uses a cron trigger in n8n to check for updates at regular intervals.
#### Setup - Ensure n8n is installed and running in a Docker container. - Create a Telegram bot using BotFather. - Set up Telegram credentials. - Set up SSH credentials (ensure the SSH user has sudo access). - Obtain the bot token and chat ID. - Set the Default variable node - telegram-id (You can find it by messaging @get_id_bot). - n8n-container-name (Specify the name of the n8n container.) - working-directory (The directory where your docker-compose.yml is). - You can use a manual trigger or a schedule trigger to update (for n8n, I use Cron every 3 days to check for a new version).
#### How to customize this workflow - Change the update mechanism: Modify the Docker commands if using a different container runtime or orchestration tool. - Modify the confirmation flow: Add extra validation steps, such as checking for breaking changes before updating. - Use a different notification method: Replace Telegram with Slack, email, or another notification service.
⚡ How to import this workflow into n8n:
- Click the Direct Download JSON button above to save
Automate_docker_container_updates_with_Telegram_approval_system.json. - Log in to your n8n Cloud or self-hosted n8n instance.
- In your workflow canvas, click the menu in top-right and select Import from File (or paste the JSON directly).
- Configure your credentials (e.g. API keys, database URLs) in the corresponding node settings.
- Click Execute Workflow to test and switch to Active!
Related DevOps & GitHub Workflows
View All in DevOps & GitHub →Generate Google Doc Proposal
Production-ready n8n automation template for Generate Google Doc Proposal built by AhiXLight. Seamlessly connects Execute Workflow Trigger, Google Drive, OpenAI with 7 configured nodes.
Add a new lead to Pipedrive once GitHub repo is forked
This workflow automatically adds a new lead to Pipedrive once someone forks your GitHub repository. Prerequisites - Pipedrive account and Pipedrive credentia...
Add the affiliate to a program automatically
This workflow allows you to create an affiliate, add metadata, and add the affiliate to a program. !workflow-screenshot Tapfiliate node: This node allows you...
Add a note to Pipedrive s contact once PR is added on GitHub
This workflow automatically adds a note of the PR from GitHub to the Pipedrive contact if their GitHub email matches a Person in Pipedrive. Prerequisites - P...