# Changes to Docker ElasticSearch set up

**URL:** <https://forum.dimagi.com/t/changes-to-docker-elasticsearch-set-up/8177>\
**Category:** Developers\
**Created:** [May 5, 2021, 8:47am UTC](https://forum.dimagi.com/t/changes-to-docker-elasticsearch-set-up/8177 "2021-05-05T08:47:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![czue](https://dimagi.b-cdn.net/user_avatar/forum.dimagi.com/czue/32/493_2.png) [@czue](https://forum.dimagi.com/u/czue)\
**Post date:** [May 5, 2021, 8:47am UTC](https://forum.dimagi.com/t/changes-to-docker-elasticsearch-set-up/8177/1 "2021-05-05T08:47:22Z")

</div>

This change only affects development environments using Docker.

We have changed the default set up for ElasticSearch in environments using Docker. In particular, ElasticSearch 7 is now no longer supported and the container is no longer built / run. And the ElasticSearch 2 container is now running on port 9200 (previously 6200).

It is recommended that anyone who was on ES7 switch back to ES2. If you were using ES7 (check `settings.ELASTICSEARCH_MAJOR_VERSION`) then you should change `ELASTICSEARCH_MAJOR_VERSION` to 2 and rebuild your elasticsearch databases (`./manage.py ptop_preindex`) against ES2.

If you were already using ES2, then you may need to change `ELASTICSEARCH_PORT` to `9200` (from `6200`) if you were using Docker.

More details can be found in this pull request: [Only use ES version 2 in docker setup by czue · Pull Request #29640 · dimagi/commcare-hq · GitHub](https://github.com/dimagi/commcare-hq/pull/29640)
