I'm having 5 Docker nodes in a cluster [swarm]. Let's say I'll constraint NGINX [it is not about nginx, it is just an example] to be deployed only on Docker node 1. Can I create that constraint in such a way that if Docker node 1 goes down the constraint to not be available anymore?
Like, having that constraint only when the node is reacheable, when it isn't, automatically remove the constraint?