-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
70 lines (68 loc) · 1.58 KB
/
docker-compose.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
version: '2.4'
services:
get-logs:
build: .
depends_on:
elasticsearch:
condition: service_healthy
kibana:
condition: service_healthy
environment:
- CF_ZONE_ID # =${CF_ZONE_ID}
- CF_AUTH_EMAIL # =${CF_AUTH_EMAIL}
- CF_AUTH_KEY # =${CF_AUTH_KEY}
- SAMPLE_RATE=0.01
- ES_HOST=http://elasticsearch:9200
- ES_INDEX=cloudflare-test
- ES_TEMPLATE_ENABLED=true
- ES_TEMPLATE_INDEX_SHARDS=1
- ES_TEMPLATE_INDEX_REPLICAS=0
- ES_TEMPLATE_INDEX_REFRESH=10s
- ES_ILM_ENABLED=true
- ES_ILM_DEFAULT_POLICY_ENABLED=true
- ES_PIPELINE_DEFAULT_ENABLED=true
healthcheck:
test: 'pgrep filebeat || exit 1'
interval: 30s
timeout: 5s
retries: 5
start_period: 20s
networks:
- get-logs
links:
- elasticsearch
volumes:
- './logs:/logs'
elasticsearch:
image: 'docker.elastic.co/elasticsearch/elasticsearch:7.6.2'
ports:
- '9200:9200'
environment:
- discovery.type=single-node
healthcheck:
test: 'curl -f http://127.0.0.1:9200 || exit 1'
interval: 5s
timeout: 5s
retries: 20
start_period: 5s
networks:
- get-logs
kibana:
depends_on:
elasticsearch:
condition: service_healthy
image: 'docker.elastic.co/kibana/kibana:7.6.2'
ports:
- '5601:5601'
healthcheck:
test: 'curl -f http://127.0.0.1:5601/api/status || exit 1'
interval: 5s
timeout: 5s
retries: 20
start_period: 15s
networks:
- get-logs
links:
- elasticsearch
networks:
get-logs: