# ES via docker in production (not localhost) mode

**URL:** <https://discuss.elastic.co/t/es-via-docker-in-production-not-localhost-mode/139321>\
**Category:** Elasticsearch\
**Created:** [July 10, 2018, 10:10am UTC](https://discuss.elastic.co/t/es-via-docker-in-production-not-localhost-mode/139321 "2018-07-10T10:10:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike\_Niemaz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_niemaz/32/30754_2.png) [@Mike\_Niemaz](https://discuss.elastic.co/u/Mike_Niemaz)\
**Post date:** [July 10, 2018, 10:10am UTC](https://discuss.elastic.co/t/es-via-docker-in-production-not-localhost-mode/139321/1 "2018-07-10T10:10:05Z")

</div>

Hi all,  
I'm trying to run ES via docker ([https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-prod-cluster-composefile](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-prod-cluster-composefile)) in a production mode .i.e: on a specified IP address (= NOT locahost).

I tried modifying the network settings (network.host, network.publish\_host, ...) but in vain.  
Any curl request with a non localhost url leads to an invalid request whereas it works perfectly from the host with localhost:9200 in the curl url.

Any idea?

Thanx,

--mike

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [July 10, 2018, 10:10am UTC](https://discuss.elastic.co/t/es-via-docker-in-production-not-localhost-mode/139321/2 "2018-07-10T10:10:44Z")

</div>

What's your docker file look like?

---

<div class="post-metadata">

**Author:** ![Mike\_Niemaz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_niemaz/32/30754_2.png) [@Mike\_Niemaz](https://discuss.elastic.co/u/Mike_Niemaz)\
**Post date:** [July 10, 2018, 11:15am UTC](https://discuss.elastic.co/t/es-via-docker-in-production-not-localhost-mode/139321/3 "2018-07-10T11:15:47Z")

</div>

No dockerfile, just using this docker-compose yml: [https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-prod-cluster-composefile](https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-prod-cluster-composefile)

---

<div class="post-metadata">

**Author:** ![Mike\_Niemaz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mike_niemaz/32/30754_2.png) [@Mike\_Niemaz](https://discuss.elastic.co/u/Mike_Niemaz)\
**Post date:** [July 11, 2018, 12:37pm UTC](https://discuss.elastic.co/t/es-via-docker-in-production-not-localhost-mode/139321/4 "2018-07-11T12:37:25Z")

</div>

Nobody?

---

<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:** [August 8, 2018, 12:40pm UTC](https://discuss.elastic.co/t/es-via-docker-in-production-not-localhost-mode/139321/5 "2018-08-08T12:40:04Z")

</div>

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