forked from elastic/e2e-testing
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
42 lines (42 loc) · 1.56 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
version: '2.4'
services:
elasticsearch:
healthcheck:
test: ["CMD", "curl", "-f", "-u", "elastic:changeme", "http://127.0.0.1:9200/"]
retries: 300
interval: 1s
environment:
- ES_JAVA_OPTS=-Xms1g -Xmx1g
- network.host="0.0.0.0"
- transport.host=127.0.0.1
- http.host=0.0.0.0
- indices.id_field_data.enabled=true
- xpack.license.self_generated.type=trial
- xpack.security.enabled=true
- xpack.security.authc.api_key.enabled=true
- xpack.security.authc.token.enabled=true
- xpack.security.authc.token.timeout=60m
- ELASTIC_USERNAME=admin
- ELASTIC_PASSWORD=changeme
image: "docker.elastic.co/elasticsearch/elasticsearch:${stackVersion:-8.6.0-3f5f98b7-SNAPSHOT}"
platform: ${stackPlatform:-linux/amd64}
ports:
- "9200:9200"
volumes:
- ./elasticsearch-roles.yml:/usr/share/elasticsearch/config/roles.yml
- ./elasticsearch-users:/usr/share/elasticsearch/config/users
- ./elasticsearch-users_roles:/usr/share/elasticsearch/config/users_roles
kibana:
depends_on:
elasticsearch:
condition: service_healthy
healthcheck:
test: "curl -f http://localhost:5601/login | grep kbn-injected-metadata 2>&1 >/dev/null"
retries: 600
interval: 1s
image: "docker.elastic.co/${kibanaDockerNamespace:-kibana}/kibana:${kibanaVersion:-8.6.0-3f5f98b7-SNAPSHOT}"
platform: ${stackPlatform:-linux/amd64}
ports:
- "5601:5601"
volumes:
- ./${kibanaProfile:-default}/kibana.config.yml:/usr/share/kibana/config/kibana.yml