# 2 server 2 node each architecture for elastic not working

**URL:** https://discuss.elastic.co/t/2-server-2-node-each-architecture-for-elastic-not-working/369284
**Category:** Elasticsearch
**Tags:** elastic-stack-monitoring, docker
**Created:** [October 23, 2024, 12:15pm UTC](https://discuss.elastic.co/t/2-server-2-node-each-architecture-for-elastic-not-working/369284 "2024-10-23T12:15:28Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![leandrojmp](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leandrojmp/32/107231_2.png) [@leandrojmp](https://discuss.elastic.co/u/leandrojmp)
#### Post date: [October 23, 2024, 2:43pm UTC](https://discuss.elastic.co/t/2-server-2-node-each-architecture-for-elastic-not-working/369284/7 "2024-10-23T14:43:21Z")

</div>

Also, check this similar question [here](https://discuss.elastic.co/t/can-not-create-elasticsearch-cluster-in-different-servers-with-docker-compose/223896).

If I'm not wrong in this scenario you need to set docker to use network-moder as host.

And you will probably need to set [`network.publish_host`](https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-network.html#advanced-network-settings) to the ip of your docker host specific for each container.

---

_[View the full topic](https://discuss.elastic.co/t/2-server-2-node-each-architecture-for-elastic-not-working/369284)._
