I have several services deployed in containers with Docker Swarm, and each service is deployed at least on 2 instances with :
deploy: mode: replicated replicas: 2
and everything is working fine.
Now, for one of these services, I would like to have an active / passive mode, i.e. I would like the first instance to run but not the second, and the second runs only if there is a problem with the first instance (for example, shutdown of the VM which hosts the first instance).
Is this possible ?
If not, alternatively, is it possible to deploy the 2 instances ot the same service with 2 different configurations ?
Thank you !