@@ -23,7 +23,6 @@ services:
23
23
24
24
elasticsearch-oss :
25
25
image : docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION:-5.6.15}
26
- - elasticsearch
27
26
volumes :
28
27
- esvol:/tmp
29
28
networks :
@@ -33,63 +32,11 @@ services:
33
32
- " repositories.url.allowed_urls=http://snapshot.*"
34
33
- node.attr.testattr=test
35
34
- bootstrap.memory_lock=false
35
+ - " xpack.security.enabled=false"
36
36
- " discovery.type=single-node"
37
37
- " ES_JAVA_OPTS=-Xms512m -Xmx512m"
38
38
39
- client-platinum :
40
- image : docker.elastic.co/clients/elasticsearch-js:${NODE_JS_VERSION:-10}
41
- build :
42
- context : ..
43
- dockerfile : .ci/Dockerfile
44
- args :
45
- NODE_JS_VERSION : ${NODE_JS_VERSION:-10}
46
- environment :
47
- - " TEST_ES_SERVER=https://elastic:changeme@elasticsearch-platinum:9200"
48
- volumes :
49
- - ..:/usr/src/app
50
- # This will mount the node_modules directory
51
- # to the host machine using the buildtime directory.
52
- - /usr/src/app/node_modules
53
- - esvol:/tmp
54
- networks :
55
- - esnet-platinum
56
- depends_on :
57
- - elasticsearch-platinum
58
- # there is not need to run again also the unit test
59
- command : ["npm", "run", "test:integration"]
60
-
61
- elasticsearch-platinum :
62
- image : docker.elastic.co/elasticsearch/elasticsearch:${ELASTICSEARCH_VERSION:5.6.15}
63
- ports :
64
- - " 9200:9200"
65
- networks :
66
- - esnet-platinum
67
- environment :
68
- - " node.attr.testattr=test"
69
- - " path.repo=/tmp"
70
- - " repositories.url.allowed_urls=http://snapshot.*"
71
- - " discovery.type=single-node"
72
- - " ES_JAVA_OPTS=-Xms1g -Xmx1g"
73
- - " ELASTIC_PASSWORD=changeme"
74
- - " xpack.security.enabled=true"
75
- - " xpack.license.self_generated.type=trial"
76
- - " xpack.security.http.ssl.enabled=true"
77
- - " xpack.security.http.ssl.verification_mode=certificate"
78
- - " xpack.security.http.ssl.key=certs/testnode.key"
79
- - " xpack.security.http.ssl.certificate=certs/testnode.crt"
80
- - " xpack.security.http.ssl.certificate_authorities=certs/ca.crt"
81
- - " xpack.security.transport.ssl.enabled=true"
82
- - " xpack.security.transport.ssl.key=certs/testnode.key"
83
- - " xpack.security.transport.ssl.certificate=certs/testnode.crt"
84
- - " xpack.security.transport.ssl.certificate_authorities=certs/ca.crt"
85
- volumes :
86
- - " ./certs/testnode.crt:/usr/share/elasticsearch/config/certs/testnode.crt"
87
- - " ./certs/testnode.key:/usr/share/elasticsearch/config/certs/testnode.key"
88
- - " ./certs/ca.crt:/usr/share/elasticsearch/config/certs/ca.crt"
89
-
90
39
networks :
91
- # we need two networks otherwise the two ES instances will join each other
92
40
esnet-oss :
93
- esnet-platinum :
94
41
volumes :
95
42
esvol :
0 commit comments