I have a 6 node docker swarm cluster in which I would like to have 3 elasticsearch masters. The remaining nodes will be data nodes. The elasticsearch cluster will be behind a reverse proxy.
What elasticsearch configuration will I need to set to spin up an elasticsearch cluster in docker swarm global mode? I will really appreciate any suggestion.
Here is my initial docker-compose.yml: https://github.com/shazChaudhry/docker-elastic/blob/8a6dbfbbfab12f96d633f31215dc9fa90df5b47f/docker-compose.yml