First of all thank you all for your replies!
Secondly I get the problem now, I assume my setup (few docker nodes and two separate servers) isn't really supported by elastic
And I guess the solution is to set up a single node, running natively, on each server. Or running docker nodes on some kind of cluster such as k8s. Am I right?