# Change of ports for elasticsearch does not work

**URL:** <https://discuss.elastic.co/t/change-of-ports-for-elasticsearch-does-not-work/217538>\
**Category:** Elasticsearch\
**Tags:** docker\
**Created:** [February 2, 2020, 3:42pm UTC](https://discuss.elastic.co/t/change-of-ports-for-elasticsearch-does-not-work/217538 "2020-02-02T15:42:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![juuuhuuu](https://avatars.discourse-cdn.com/v4/letter/j/958977/32.png) [@juuuhuuu](https://discuss.elastic.co/u/juuuhuuu)\
**Post date:** [February 2, 2020, 3:42pm UTC](https://discuss.elastic.co/t/change-of-ports-for-elasticsearch-does-not-work/217538/1 "2020-02-02T15:42:35Z")

</div>

Hi all ☀

please help,  
So I pulled the image of elasticsearch on docker and create in docker-compose.yml different ports for elasticsearch (9200 to 9222) .. but I have not started it yet ..  
Where in the settings of elasticsearch should I change the default ports of elasticsearch?

---

<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:** [March 1, 2020, 3:42pm UTC](https://discuss.elastic.co/t/change-of-ports-for-elasticsearch-does-not-work/217538/2 "2020-03-01T15:42:44Z")

</div>

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