Try to fix ES data persistence.
This commit is contained in:
parent
58317c0fd7
commit
49e4d06a92
|
@ -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:
|
||||||
|
|
Reference in New Issue