-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.logging.yml
More file actions
59 lines (56 loc) · 1.41 KB
/
Copy pathdocker-compose.logging.yml
File metadata and controls
59 lines (56 loc) · 1.41 KB
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
57
58
59
services:
elastic:
image: elasticsearch:8.12.2
container_name: elastic
environment:
- node.name=main
- cluster.name=cluster
- discovery.type=single-node
- bootstrap.memory_lock=true
- xpack.security.enabled=false
ulimits:
memlock:
soft: -1
hard: -1
healthcheck:
test: [ "CMD-SHELL", "curl -f http://localhost:9200/_cat/health | grep -q -e green -e yellow" ]
interval: 20s
timeout: 20s
retries: 10
ports:
- "9200:9200"
- "9300:9300"
volumes:
- elastic:/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:/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:
kibana: