# Connecting Kibana to multiple Coordinating Nodes in docker-compose setup

**URL:** <https://discuss.elastic.co/t/connecting-kibana-to-multiple-coordinating-nodes-in-docker-compose-setup/199521>\
**Category:** Kibana\
**Tags:** docker\
**Created:** [September 15, 2019, 8:43am UTC](https://discuss.elastic.co/t/connecting-kibana-to-multiple-coordinating-nodes-in-docker-compose-setup/199521 "2019-09-15T08:43:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![apt-get\_install\_skil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apt-get_install_skil/32/115156_2.png) [@apt-get\_install\_skil](https://discuss.elastic.co/u/apt-get_install_skil)\
**Post date:** [September 15, 2019, 8:43am UTC](https://discuss.elastic.co/t/connecting-kibana-to-multiple-coordinating-nodes-in-docker-compose-setup/199521/1 "2019-09-15T08:43:18Z")

</div>

Hey,

I am running an Elasticsearch 7.3.0 cluster via docker-compose with 3 machines that host one MDI and one Coordinating-only node each. On one machine I host Kibana as well. I want Kibana to connect to all three coordinating-nodes due to loadbalancing purposes. Therefore I specify in the environment section of the kibana service the following setting:

```
ELASTICSEARCH_HOSTS: "https://192.168.2.120:9201,https://192.168.2.121:9201,https://192.168.2.122:9201"

```

However on the startup I get following error message:

```
FATAL Error: [elasticsearch.hosts]: types that failed validation:
[elasticsearch.hosts.0]: expected URI with scheme [http|https] but but got [https://192.168.2.120:9201,https://192.168.2.121:9201,https://192.168.2.122:9201].
[elasticsearch.hosts.1]: expected value of type [array] but got [string]

```

Removing the quotes doesn't solve the issue.

**What's the correct way to specify multiple elasticsearch hosts for kibana in a _docker-compose file_?**

---

<div class="post-metadata">

**Author:** ![Brandon\_Kobel](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/brandon_kobel/32/14829_2.png) [@Brandon\_Kobel](https://discuss.elastic.co/u/Brandon_Kobel)\
**Post date:** [September 16, 2019, 2:31pm UTC](https://discuss.elastic.co/t/connecting-kibana-to-multiple-coordinating-nodes-in-docker-compose-setup/199521/2 "2019-09-16T14:31:07Z")

</div>

Hey @apt-get_install_skil, you'll want to use the following:

```auto
ELASTICSEARCH_HOSTS: '["https://192.168.2.120:9201","https://192.168.2.121:9201","https://192.168.2.122:9201"]'

```

---

<div class="post-metadata">

**Author:** ![apt-get\_install\_skil](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/apt-get_install_skil/32/115156_2.png) [@apt-get\_install\_skil](https://discuss.elastic.co/u/apt-get_install_skil)\
**Post date:** [September 23, 2019, 3:17pm UTC](https://discuss.elastic.co/t/connecting-kibana-to-multiple-coordinating-nodes-in-docker-compose-setup/199521/3 "2019-09-23T15:17:33Z")

</div>

Thanks a lot @Brandon_Kobel! That solved the issue!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [October 21, 2019, 3:17pm UTC](https://discuss.elastic.co/t/connecting-kibana-to-multiple-coordinating-nodes-in-docker-compose-setup/199521/4 "2019-10-21T15:17:41Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
