Elasticsearch 8.1.0 Cluster Issue

You can do such things only in host terms.

So particular node will be involved in particular node.role. But please remember if You will be provisioned over docker service/yml coordinator node has an issue with definition.