-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdocker-compose.yml
25 lines (25 loc) · 942 Bytes
/
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
version: '3'
services:
elk:
container_name: cf-elk
image: sebp/elk
volumes:
- "./scripts:/scripts"
- "./conf:/etc/logstash/conf.d"
- "./data/es-data:/var/lib/elasticsearch"
- "./data/logstash-logs:/logstash-logs"
ports:
- "5601:5601"
- "5044:5044"
- "9200:9200"
command:
bash -c "/scripts/pre-start.sh"
environment:
CF_EMAIL: "xxxxxxxxxx"
CF_API_KEY: "xxxxxxxxxx"
CF_ZONES: "xxxxxxxxxx,yyyyyyyyyy,zzzzzzzzzz"
CF_FIELDS: "CacheCacheStatus,ClientRequestHost,ClientRequestURI,CacheResponseStatus,EdgeResponseStatus,OriginResponseStatus,EdgeStartTimestamp,ClientIP,ClientRequestBytes,CacheResponseBytes,EdgeResponseBytes,ClientRequestMethod,ZoneID,ClientRequestProtocol,ClientRequestUserAgent"
CF_LOGS_FETCH_SCHEDULE: "*/5 * * * *"
CF_LOGS_FETCH_MIN: "5"
ES_CLEAN_INDICES_SCHEDULE: "0 0 * * *"
ES_INDEX_RETENTION_DAYS: "10"