push my changes to the repo, the pipeline is triggered and the Docker container is rebuilded. For 5 minutes or so, my app goes offline, there is a way to show a maintenance page meanwhile the container rebuild?
you are doing it the wrong way. you need to have a load balancer in front, where you can do blue-green deployment. you build the new container, push it to your host, then remove the old container. in fact, docker swarm already done this for you automatically when you update your container image
there are some example out there?
learn from the DevOps guru himself: https://martinfowler.com/bliki/BlueGreenDeployment.html
thanks I will take a look
https://github.com/vfarcic/vfarcic.github.io/blob/master/docker-swarm/docker-swarm-updates.md
this is interesting! thanks!
Обсуждают сегодня