-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
84 lines (78 loc) · 3.21 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
version: '3.3'
services:
es01:
restart: always
image: amazon/opendistro-for-elasticsearch:1.12.0
environment:
ES_JAVA_OPTS: "-Xms2048m -Xmx2048m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
node.name: es01
opendistro_security.ssl.transport.pemkey_filepath: certificates/es01/es01.key # relative path
opendistro_security.ssl.transport.pemcert_filepath: certificates/es01/es01.pem
opendistro_security.ssl.http.pemkey_filepath: certificates/es01/es01.key
opendistro_security.ssl.http.pemcert_filepath: certificates/es01/es01.pem
DISABLE_INSTALL_DEMO_CONFIG: "true"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- "./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml"
- "odfe-data1:/usr/share/elasticsearch/data"
- "./certs:/usr/share/elasticsearch/config/certificates:ro"
ports:
- 9200:9200
- 9600:9600 # required for Performance Analyzer
es02:
restart: always
image: amazon/opendistro-for-elasticsearch:1.12.0
environment:
ES_JAVA_OPTS: "-Xms2048m -Xmx2048m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
node.name: es02
opendistro_security.ssl.transport.pemkey_filepath: certificates/es02/es02.key # relative path
opendistro_security.ssl.transport.pemcert_filepath: certificates/es02/es02.pem
opendistro_security.ssl.http.pemkey_filepath: certificates/es02/es02.key
opendistro_security.ssl.http.pemcert_filepath: certificates/es02/es02.pem
DISABLE_INSTALL_DEMO_CONFIG: "true"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- "./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml"
- "odfe-data2:/usr/share/elasticsearch/data"
- "./certs:/usr/share/elasticsearch/config/certificates:ro"
es03:
restart: always
image: amazon/opendistro-for-elasticsearch:1.12.0
environment:
ES_JAVA_OPTS: "-Xms2048m -Xmx2048m" # minimum and maximum Java heap size, recommend setting both to 50% of system RAM
node.name: es03
opendistro_security.ssl.transport.pemkey_filepath: certificates/es03/es03.key # relative path
opendistro_security.ssl.transport.pemcert_filepath: certificates/es03/es03.pem
opendistro_security.ssl.http.pemkey_filepath: certificates/es03/es03.key
opendistro_security.ssl.http.pemcert_filepath: certificates/es03/es03.pem
DISABLE_INSTALL_DEMO_CONFIG: "true"
ulimits:
memlock:
soft: -1
hard: -1
volumes:
- "./elasticsearch.yml:/usr/share/elasticsearch/config/elasticsearch.yml"
- "odfe-data3:/usr/share/elasticsearch/data"
- "./certs:/usr/share/elasticsearch/config/certificates:ro"
kibana:
restart: always
image: amazon/opendistro-for-elasticsearch-kibana:1.12.0
ports:
- 5601:5601
volumes:
- "./certs:/usr/share/elasticsearch/config/certificates:ro"
- "./kibana.yml:/usr/share/kibana/config/kibana.yml"
environment:
ELASTICSEARCH_URL: https://es01:9200
ELASTICSEARCH_HOSTS: https://es01:9200
DISABLE_INSTALL_DEMO_CONFIG: "true"
volumes:
odfe-data1:
odfe-data2:
odfe-data3: