Does anyone know how to create a new docker service and mount to different, existing, volumes based on the node.
For instance, I want to create a database cluster and link it to mounted volumes on two different nodes. I’ve created the volumes and everything, but I don’t know how to create the service in such a way that it will deploy the containers differently based on which node it deploys them to. Specifically it should mount them to the appropriate volume based on which node it deploys the containers to.
Is anyone aware of how to do this?