forked from opendistro-for-elasticsearch/odfe-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
34 lines (32 loc) · 1.16 KB
/
docker-compose.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
32
33
34
# Copied from https://opendistro.github.io/for-elasticsearch-docs/docs/install/docker/
# removed node-2 since we don't need to create two node cluster for integration test
version: '3'
services:
odfe-test-node1:
image: amazon/opendistro-for-elasticsearch:${ODFE_VERSION:-latest}
container_name: odfe-test-node1
environment:
- cluster.name=odfe-test-cluster
- node.name=odfe-test-node1
- discovery.seed_hosts=odfe-test-node1
- cluster.initial_master_nodes=odfe-test-node1
- bootstrap.memory_lock=true # along with the memlock settings below, disables swapping
- "ES_JAVA_OPTS=-Xms512m -Xmx512m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536 # maximum number of open files for the Elasticsearch user, set to at least 65536 on modern systems
hard: 65536
volumes:
- odfe-test-data1:/usr/share/elasticsearch/data
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
networks:
- odfe-test-net
volumes:
odfe-test-data1:
networks:
odfe-test-net: