This commit is contained in:
2018-04-03 16:40:19 +02:00
parent 337737fa0c
commit aad8fd1a95

View File

@@ -25,17 +25,17 @@ services:
image: elasticsearch:2.4-alpine
ulimits:
memlock:
soft: 20480
hard: 20480
soft: 10240
hard: 10240
environment:
- "ES_JAVA_OPTS=-server -Xms24m -Xmx24m"
- "ES_HEAP_SIZE=24m"
- "MAX_LOCKED_MEMORY=20480"
- "ES_JAVA_OPTS=-server -Xms14m -Xmx14m"
- "ES_HEAP_SIZE=14m"
- "MAX_LOCKED_MEMORY=10240"
- index.number_of_shards=1
- index.number_of_replicas=0
- network.tcp.block=1
- bootstrap.memory_lock=1
volumes:
- esdata:/usr/share/elasticsearch/data
- "./esdata:/usr/share/elasticsearch/data:rw"
expose:
- "9200"