-
Notifications
You must be signed in to change notification settings - Fork 6
/
docker-compose.elastic.yaml
46 lines (42 loc) · 1.42 KB
/
docker-compose.elastic.yaml
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
version: '3.2'
services:
elasticsearch:
container_name: buffalogs_elasticsearch
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.13
hostname: elasticsearch
environment:
- node.name=buffalogs_elastic
- bootstrap.memory_lock=true
- "ES_JAVA_OPTS=-Xms1g -Xmx1g"
- discovery.type=single-node
- cluster.routing.allocation.disk.watermark.low=99%
- cluster.routing.allocation.disk.watermark.high=99%
- cluster.routing.allocation.disk.watermark.flood_stage=99%
ulimits:
memlock:
soft: -1
hard: -1
ports:
- "9200:9200"
volumes:
- elasticsearch_data:/usr/share/elasticsearch/data
healthcheck:
test: curl -XGET 'localhost:9200/_cluster/health?wait_for_status=yellow&timeout=180s&pretty'
kibana:
container_name: buffalogs_kibana
image: docker.elastic.co/kibana/kibana:7.17.7
hostname: kibana
environment:
ELASTICSEARCH_URL: http://elasticsearch:9200
ELASTICSEARCH_HOSTS: http://elasticsearch:9200
links:
- elasticsearch
depends_on:
- elasticsearch
ports:
- "127.0.0.1:5601:5601"
healthcheck:
test: curl -fs http://localhost:5601/
volumes:
elasticsearch_data:
driver: local