Abstract: Mainly about the use of Portainer tool to achieve online service automatic update, with Jenkins to use together, I use is based on stack configuration to release services, the following stack webhook to do the case
Basic Configuration Preparations
Create a public project using your github, then create a docker-comemess. yml file with the following contents.
version: "3"
services:
springboot-demo:
image: huzhihui/springboot:latest
networks:
- huzhihui
ports:
- "8080:8080"
deploy:
mode: replicated
replicas: 2
restart_policy:
condition: on-failure
delay: 60s
max_attempts: 3
update_config:
parallelism: 1
delay: 60s
networks:
huzhihui:
external: true
Copy the code
Portainer configuration
After successful startup
Access to the effect
Based on thewebhook
Automatic update of
How to see their own company next package, the introduction is here