Try to fix ES data persistence.

This commit is contained in:
Ivaylo Novakov 2021-04-30 12:46:03 +02:00
parent 58317c0fd7
commit 49e4d06a92
No known key found for this signature in database
GPG Key ID: 06B9354AB08BE9C6
1 changed files with 4 additions and 3 deletions

View File

@ -80,10 +80,11 @@ services:
- discovery.type=single-node - discovery.type=single-node
# This prevents elasticsearch from using swap. # This prevents elasticsearch from using swap.
# See https://www.elastic.co/guide/en/elasticsearch/reference/master/setup-configuration-memory.html#setup-configuration-memory # See https://www.elastic.co/guide/en/elasticsearch/reference/master/setup-configuration-memory.html#setup-configuration-memory
- bootstrap.memory_lock=true # - bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms4g -Xmx4g" # - "ES_JAVA_OPTS=-Xms4g -Xmx4g"
volumes: volumes:
- ./docker/data/elasticsearch:/usr/share/elasticsearch/data # This dir needs to be chowned to 1000:1000
- ./docker/data/elasticsearch/data:/usr/share/elasticsearch/data
ports: ports:
- "127.0.0.1:9200:9200/tcp" - "127.0.0.1:9200:9200/tcp"
networks: networks: