forked from jillesvangurp/kt-search
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose-es-8.yml
26 lines (25 loc) · 929 Bytes
/
docker-compose-es-8.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
version: '2.2'
services:
es8:
image: docker.elastic.co/elasticsearch/elasticsearch:8.9.0
environment:
- cluster.name=docker-test-cluster
- bootstrap.memory_lock=true
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms512m -Xmx512m"
- cluster.routing.allocation.disk.threshold_enabled=true
# make sure it works on nearly full disk
- cluster.routing.allocation.disk.watermark.low=3gb
- cluster.routing.allocation.disk.watermark.high=2gb
- cluster.routing.allocation.disk.watermark.flood_stage=1gb
- cluster.routing.allocation.disk.threshold_enabled=false
- xpack.security.enabled=false
- network.host=127.0.0.1
- http.host=0.0.0.0
ulimits:
memlock:
soft: -1
hard: -1
ports:
# give our test instance a port number that is for sure not going to write to some poor cluster listening on 9200
- "9999:9200"