-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
43 lines (41 loc) · 1.11 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
services:
elastic:
image: "bitnami/elasticsearch:8.17.1"
container_name: elastic
environment:
ELASTICSEARCH_NODE_NAME: elastic
ELASTICSEARCH_CLUSTER_NAME: elastic
ELASTICSEARCH_ENABLE_SECURITY: false
ELASTICSEARCH_ENABLE_REST_TLS: false
ELASTICSEARCH_LOCK_ALL_MEMORY: true
ELASTICSEARCH_HEAP_SIZE: 1g
healthcheck:
test: [ "CMD-SHELL", "curl --silent --fail --user elastic:qwerty localhost:9200/_cluster/health?local=true || exit 1" ]
interval: 20s
timeout: 20s
retries: 10
ports:
- "9200:9200"
- "9300:9300"
volumes:
- elastic:/usr/share/elasticsearch/data
kibana:
image: "bitnami/kibana:8.17.1"
container_name: kibana
environment:
KIBANA_ELASTICSEARCH_URL: elastic
healthcheck:
test: [ "CMD-SHELL", "curl --silent --fail localhost:5601/api/status || exit 1" ]
interval: 20s
timeout: 10s
retries: 10
ports:
- "5601:5601"
volumes:
- kibana:/usr/share/kibana/data
depends_on:
elastic:
condition: service_healthy
volumes:
elastic:
kibana: