docker-compose-development icon indicating copy to clipboard operation
docker-compose-development copied to clipboard

Make elasticsearch persistent

Open JCombee opened this issue 3 years ago • 1 comments

At the moment the data in elastic search gets perged when you destroy the container. I think the elastic search containers should also have a persistent volume just like mysql. This will prevent that you have to reindex magento projects every time you remove the containers.

JCombee avatar Sep 23 '22 08:09 JCombee

Ive looked up what the actual directory is that you need to persist: /usr/share/elasticsearch/data.

https://www.elastic.co/guide/en/elasticsearch/reference/7.5/docker.html

JCombee avatar Sep 23 '22 08:09 JCombee