-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathdocker-compose-os-2.yml
31 lines (31 loc) · 1.07 KB
/
docker-compose-os-2.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
27
28
29
30
31
services:
os2:
image: opensearchproject/opensearch:2.18.0
environment:
- cluster.name=docker-test-cluster
- bootstrap.memory_lock=true
- discovery.type=single-node
- "ES_JAVA_OPTS=-Xms1024m -Xmx1024m"
- 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
- DISABLE_SECURITY_PLUGIN=true
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"
# os2-dashboards:
# image: opensearchproject/opensearch-dashboards:2.18.0
# environment:
# - OPENSEARCH_HOSTS=http://os2:9200
# - DISABLE_SECURITY_DASHBOARDS_PLUGIN=true
# ports:
# - "5601:5601"
# depends_on:
# - os2