Skip to content

Need guidance on storing all the indexes at custom location #343

Answered by alexklibisz
RajKKapadia asked this question in Q&A
Discussion options

You must be logged in to vote

Hey Raj, I recommend reading these docs: https://www.elastic.co/guide/en/elasticsearch/reference/current/docker.html#docker-compose-file

You basically need to mount a volume at /usr/share/elasticsearch/data in order to persist data. The example docker-compose file does this in its volumes sections. I'm not sure what the corresponding docker command is. I would google something like "docker command to mount a volume"

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by alexklibisz
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants