I want to have to achieve zero downtime. I have created a service with 5 replicas and deploy into the stack then I want to update the existing service with some new changes and deploy into the stack with zero downtime.
version: "3"
services:
hello-html:
image: hello-html:latest
deploy:
replicas: 5
resources:
limits:
cpus: "0.1"
memory: 50M
restart_policy:
condition: on-failure
ports:
- 80:80
networks:
mynetwork:
driver: overlay