Automated n8n Docker Update Workflow
detail.loadingPreview
Streamline your n8n instance management with this automated Docker update workflow. It intelligently checks for new versions, notifies you for approval, and can seamlessly update your n8n Docker deployment.
About This Workflow
This n8n workflow is designed to automate the process of updating your n8n Docker instance. It begins by checking the current n8n settings to determine if it's running in Docker. If it is, the workflow fetches the latest available n8n Docker image version and compares it with your currently deployed version. If an update is available, it will either await your manual approval via a message (integrating with Google Gemini for potential communication) or proceed directly to pull the new image, stop the current containers, and restart with the updated version. The workflow also includes a Docker path setting and the ability to scale n8n workers, offering robust control over your n8n deployment.
Key Features:
- Version Checking: Automatically detects the latest n8n Docker image version.
- Conditional Updates: Only proceeds with updates if a newer version is available.
- Manual Approval Gate: Includes an optional step for manual approval before updating.
- Docker Deployment Management: Handles pulling new images, stopping, and restarting Docker containers.
- Worker Scaling: Configurable option to scale n8n workers during updates.
This workflow is ideal for users who want to maintain an up-to-date n8n instance with minimal manual intervention, ensuring access to the latest features and security patches.
Key Features
- Intelligent Version Detection: Automatically identifies the latest stable n8n Docker image available on Docker Hub.
- Automated Docker Deployment: Seamlessly pulls new images, stops running containers, and restarts your n8n instance with the updated version.
- Conditional Update Logic: Prevents unnecessary updates by comparing current and available versions.
- Optional Manual Approval: Provides a crucial checkpoint for reviewing and approving updates before they are applied to your live instance.
- Configurable Worker Scaling: Allows you to adjust the number of n8n worker processes during the update for optimal performance.
How To Use
- Configure n8n Instance Settings: Ensure your n8n instance's settings are correctly exposed and accessible via the
WEBHOOK_URLenvironment variable. - Set Docker Path: In the
Docker Pathnode, define the correct local path where your n8n Docker compose files are located (e.g.,./n8n-docker-caddy). - Configure SSH Credentials: Set up your SSH credentials in the
SSH root N8N Hetznercredential, providing access to the server where your n8n Docker instance is hosted. - Define Worker Scaling (Optional): Adjust the
worker_commandin theDocker Pathnode to specify the desired number of n8n workers after an update (e.g.,--scale n8n-worker=4). - Connect Manual Approval (Optional): If you wish to have manual approval, keep the nodes between
Needs Update ?andUpdate Dockerconnected. TheGoogle Gemini Chat Modelcan be configured to send notifications for approval. - Enable Full Automation: To bypass manual approval, delete the nodes within the "MANUAL APPROVAL SECTION" and connect the "true" output of the
Needs Update ?node directly to theUpdate Dockernode. - Set Trigger Schedule: Configure the
Every Hournode to run the workflow at your desired interval (e.g., hourly).
Apps Used
Workflow JSON
{
"id": "b01c1236-742b-4b6c-b185-41efe478a824",
"name": "Automated n8n Docker Update Workflow",
"nodes": 20,
"category": "DevOps",
"status": "active",
"version": "1.0.0"
}Note: This is a sample preview. The full workflow JSON contains node configurations, credentials placeholders, and execution logic.
Get This Workflow
ID: b01c1236-742b...
About the Author
SaaS_Connector
Integration Guru
Connecting CRM, Notion, and Slack to automate your life.
Statistics
Related Workflows
Discover more workflows you might like
Automate Qualys Report Generation and Retrieval
Streamline your Qualys security reporting by automating the generation and retrieval of reports. This workflow ensures timely access to crucial security data without manual intervention.
Automated PR Merged QA Notifications
Streamline your QA process with this automated workflow that notifies your team upon successful Pull Request merges. Leverage AI and vector stores to enrich notifications and ensure seamless integration into your development pipeline.
Visualize Your n8n Workflows: Interactive Dashboard with Mermaid.js
Gain unparalleled visibility into your n8n automation landscape. This workflow transforms your n8n instance into a dynamic, interactive dashboard, leveraging Mermaid.js to visualize all your workflows in one accessible place.