How to find the other tasks in your service?


for configuring replication, how can my (mysql) container find the other replicas that run the same service?
I need to find their tags too.



Details of replications are known to node managers. It’s possible to pass relevant information to containers during service creation.

In case you haven’t noticed, running multiple copies of mysql in a cluster requires more than replicating them with docker. I wonder what mysql package/docker image are you using that you try to replicate?

I use MariaDB in multi-master/multi-source configuration. 3 containers. Trying to create only one service for all three containers, and have the containers discover the sister containers, and self-configure accordingly.