In a docker-compose.yml file, is there a way to constrain the placement of a service to not just a manager node, but the leader manager node?
For instance, this will constrain to any manager node:
version: '3.5'
services:
my_cool_service:
image: meh
deploy:
placement:
constraints:
- "node.role == manager"
Is there a similar constraint that provides functionality like:
node.manager_status_leader == yes