Relative Content

Tag Archive for dockerelasticsearchdocker-compose

elasticsearch node ids changed after changing dockercompose file

I have an Elasticsearch cluster configured in a docker compose file.
The cluster has three nodes, all running on the same host. In each node I have a docker volume (not pinned) that is mapped to /usr/share/elasticsearch/data folder inside the node.
I wanted to move the data of two of the nodes to a different drive on the host, so I copied the folders from /var/lib/docker/volumes to the different drive, and changed the volume defintion under the nodes to be defined insead of:
`volumes: