11# Only used for testing the docker images
2- version : ' 3'
2+ version : ' 3.4 '
33services :
44 elasticsearch-default-1 :
55 image : elasticsearch:test
6- environment :
7- - node.name=elasticsearch-default-1
6+ environment :
7+ - node.name=elasticsearch-default-1
88 - cluster.initial_master_nodes=elasticsearch-default-1,elasticsearch-default-2
9- - discovery.seed_hosts=elasticsearch-default-2:9300
9+ - discovery.seed_hosts=elasticsearch-default-2:9300
1010 - cluster.name=elasticsearch-default
1111 - bootstrap.memory_lock=true
1212 - " ES_JAVA_OPTS=-Xms512m -Xmx512m"
@@ -15,21 +15,20 @@ services:
1515 - cluster.routing.allocation.disk.watermark.low=1b
1616 - cluster.routing.allocation.disk.watermark.high=1b
1717 - cluster.routing.allocation.disk.watermark.flood_stage=1b
18- - script.max_compilations_rate=2048/1m
19- - node.store.allow_mmap=false
18+ - node.store.allow_mmap=false
2019 - xpack.security.enabled=true
2120 - xpack.security.transport.ssl.enabled=true
2221 - xpack.security.http.ssl.enabled=true
2322 - xpack.security.authc.token.enabled=true
2423 - xpack.security.audit.enabled=true
25- - xpack.security.authc.realms.file.file1.order=0
24+ - xpack.security.authc.realms.file.file1.order=0
2625 - xpack.security.authc.realms.native.native1.order=1
2726 - xpack.security.transport.ssl.keystore.path=/usr/share/elasticsearch/config/testnode.jks
2827 - xpack.security.http.ssl.keystore.path=/usr/share/elasticsearch/config/testnode.jks
29- - xpack.http.ssl.verification_mode=certificate
30- - xpack.security.transport.ssl.verification_mode=certificate
28+ - xpack.http.ssl.verification_mode=certificate
29+ - xpack.security.transport.ssl.verification_mode=certificate
3130 - xpack.license.self_generated.type=trial
32- volumes :
31+ volumes :
3332 - ./build/repo:/tmp/es-repo
3433 - ./build/certs/testnode.jks:/usr/share/elasticsearch/config/testnode.jks
3534 - ./build/logs/default-1:/usr/share/elasticsearch/logs
@@ -40,13 +39,22 @@ services:
4039 memlock :
4140 soft : -1
4241 hard : -1
42+ nofile :
43+ soft : 65536
44+ hard : 65536
4345 entrypoint : /docker-test-entrypoint.sh
46+ healthcheck :
47+ start_period : 15s
48+ test : ["CMD", "curl", "-f", "-u", "x_pack_rest_user:x-pack-test-password", "-k", "https://localhost:9200"]
49+ interval : 10s
50+ timeout : 2s
51+ retries : 5
4452 elasticsearch-default-2 :
4553 image : elasticsearch:test
46- environment :
54+ environment :
4755 - node.name=elasticsearch-default-2
4856 - cluster.initial_master_nodes=elasticsearch-default-1,elasticsearch-default-2
49- - discovery.seed_hosts=elasticsearch-default-1:9300
57+ - discovery.seed_hosts=elasticsearch-default-1:9300
5058 - cluster.name=elasticsearch-default
5159 - bootstrap.memory_lock=true
5260 - " ES_JAVA_OPTS=-Xms512m -Xmx512m"
@@ -55,21 +63,20 @@ services:
5563 - cluster.routing.allocation.disk.watermark.low=1b
5664 - cluster.routing.allocation.disk.watermark.high=1b
5765 - cluster.routing.allocation.disk.watermark.flood_stage=1b
58- - script.max_compilations_rate=2048/1m
59- - node.store.allow_mmap=false
66+ - node.store.allow_mmap=false
6067 - xpack.security.enabled=true
6168 - xpack.security.transport.ssl.enabled=true
6269 - xpack.security.http.ssl.enabled=true
6370 - xpack.security.authc.token.enabled=true
6471 - xpack.security.audit.enabled=true
65- - xpack.security.authc.realms.file.file1.order=0
66- - xpack.security.authc.realms.native.native1.order=1
72+ - xpack.security.authc.realms.file.file1.order=0
73+ - xpack.security.authc.realms.native.native1.order=1
6774 - xpack.security.transport.ssl.keystore.path=/usr/share/elasticsearch/config/testnode.jks
6875 - xpack.security.http.ssl.keystore.path=/usr/share/elasticsearch/config/testnode.jks
69- - xpack.http.ssl.verification_mode=certificate
70- - xpack.security.transport.ssl.verification_mode=certificate
76+ - xpack.http.ssl.verification_mode=certificate
77+ - xpack.security.transport.ssl.verification_mode=certificate
7178 - xpack.license.self_generated.type=trial
72- volumes :
79+ volumes :
7380 - ./build/repo:/tmp/es-repo
7481 - ./build/certs/testnode.jks:/usr/share/elasticsearch/config/testnode.jks
7582 - ./build/logs/default-2:/usr/share/elasticsearch/logs
@@ -80,13 +87,22 @@ services:
8087 memlock :
8188 soft : -1
8289 hard : -1
90+ nofile :
91+ soft : 65536
92+ hard : 65536
8393 entrypoint : /docker-test-entrypoint.sh
94+ healthcheck :
95+ start_period : 15s
96+ test : ["CMD", "curl", "-f", "-u", "x_pack_rest_user:x-pack-test-password", "-k", "https://localhost:9200"]
97+ interval : 10s
98+ timeout : 2s
99+ retries : 5
84100 elasticsearch-oss-1 :
85101 image : elasticsearch:test
86- environment :
87- - node.name=elasticsearch-oss-1
102+ environment :
103+ - node.name=elasticsearch-oss-1
88104 - cluster.initial_master_nodes=elasticsearch-oss-1,elasticsearch-oss-2
89- - discovery.seed_hosts=elasticsearch-oss-2:9300
105+ - discovery.seed_hosts=elasticsearch-oss-2:9300
90106 - cluster.name=elasticsearch-oss
91107 - bootstrap.memory_lock=true
92108 - " ES_JAVA_OPTS=-Xms512m -Xmx512m"
@@ -95,9 +111,8 @@ services:
95111 - cluster.routing.allocation.disk.watermark.low=1b
96112 - cluster.routing.allocation.disk.watermark.high=1b
97113 - cluster.routing.allocation.disk.watermark.flood_stage=1b
98- - script.max_compilations_rate=2048/1m
99- - node.store.allow_mmap=false
100- volumes :
114+ - node.store.allow_mmap=false
115+ volumes :
101116 - ./build/oss-repo:/tmp/es-repo
102117 - ./build/logs/oss-1:/usr/share/elasticsearch/logs
103118 ports :
@@ -106,12 +121,21 @@ services:
106121 memlock :
107122 soft : -1
108123 hard : -1
124+ nofile :
125+ soft : 65536
126+ hard : 65536
127+ healthcheck :
128+ start_period : 15s
129+ test : ["CMD", "curl", "-f", "http://localhost:9200"]
130+ interval : 10s
131+ timeout : 2s
132+ retries : 5
109133 elasticsearch-oss-2 :
110134 image : elasticsearch:test
111- environment :
135+ environment :
112136 - node.name=elasticsearch-oss-2
113137 - cluster.initial_master_nodes=elasticsearch-oss-1,elasticsearch-oss-2
114- - discovery.seed_hosts=elasticsearch-oss-1:9300
138+ - discovery.seed_hosts=elasticsearch-oss-1:9300
115139 - cluster.name=elasticsearch-oss
116140 - bootstrap.memory_lock=true
117141 - " ES_JAVA_OPTS=-Xms512m -Xmx512m"
@@ -120,9 +144,8 @@ services:
120144 - cluster.routing.allocation.disk.watermark.low=1b
121145 - cluster.routing.allocation.disk.watermark.high=1b
122146 - cluster.routing.allocation.disk.watermark.flood_stage=1b
123- - script.max_compilations_rate=2048/1m
124- - node.store.allow_mmap=false
125- volumes :
147+ - node.store.allow_mmap=false
148+ volumes :
126149 - ./build/oss-repo:/tmp/es-repo
127150 - ./build/logs/oss-2:/usr/share/elasticsearch/logs
128151 ports :
@@ -131,3 +154,9 @@ services:
131154 memlock :
132155 soft : -1
133156 hard : -1
157+ healthcheck :
158+ start_period : 15s
159+ test : ["CMD", "curl", "-f", "http://localhost:9200"]
160+ interval : 10s
161+ timeout : 2s
162+ retries : 5
0 commit comments