We are using CI (Jenkins) to deploy a new version of application on every commit. For every commit, we build a new version of image and run the following command:
docker service update --image myimage:1.2.3 MyService_web
Service starts serving new version of application which is correct. But, what if we change some sections in
networks) and want it to be reflected in the service when it is updated? Is there a simple way for
docker service update to update the service based on new content of
docker-compose.yml? I know that there exist many options for
docker service update command but they all need to be run manually for every section in compose file.