-
Notifications
You must be signed in to change notification settings - Fork 4
/
docker-compose.logging.yml
56 lines (53 loc) · 1.43 KB
/
docker-compose.logging.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
44
45
46
47
48
49
50
51
52
53
54
55
56
services:
elastic:
image: elasticsearch:8.12.2
container_name: elastic
environment:
discovery.type: single-node
node.name: elastics
bootstrap.memory_lock: true
cluster.routing.allocation.disk.threshold_enabled: false
xpack.security.enabled: false
ES_JAVA_OPTS: "-Xms1024m -Xmx1024m"
healthcheck:
test: [ "CMD-SHELL", "curl -f http://localhost:9200/_cat/health | grep -q green" ]
interval: 20s
timeout: 20s
retries: 10
ports:
- "9200:9200"
- "9300:9300"
volumes:
- elastic-data:/usr/share/elasticsearch/data
kibana:
image: kibana:8.12.2
container_name: kibana
environment:
ELASTICSEARCH_HOSTS: http://elastic:9200
healthcheck:
test: [ "CMD-SHELL", "curl --silent --fail localhost:5601/api/status || exit 1" ]
interval: 20s
timeout: 10s
retries: 10
ports:
- "5601:5601"
volumes:
- kibana-data:/usr/share/kibana/data
depends_on:
elastic:
condition: service_healthy
fluent-bit:
image: fluent/fluent-bit:3.1.7-debug
container_name: fluent-bit
ports:
- "5170:5170"
healthcheck:
test: [ "CMD-SHELL", "curl --silent --fail http://localhost:2020/api/v1/health" ]
interval: 5s
timeout: 2s
retries: 5
volumes:
- ./docker/fluent-bit/fluent-bit.conf:/fluent-bit/etc/fluent-bit.conf
volumes:
elastic-data:
kibana-data: