Running an Elasticsearch cluster on Docker 1.9 with Swarm and Compose
Yoanis Gil Delgado
3510

Hi!

You cannot do:

environment:
- "affinity:container!=*master*"
- "affinity:container!=*es-node*"

Only the later one takes effect as you are setting the same environment variable twice.
The proper syntax is:

environment:
- "affinity:container!=*es-node_*|es_master*"

Otherwise the cluster nodes might end up on the same host with master node.

Show your support

Clapping shows how much you appreciated Mariusz Woloszyn’s story.