add filebeat for rancher catalog for fast deployment

This commit is contained in:
Eason
2018-02-06 23:48:43 +08:00
parent 9a282a101d
commit be3a12a603
8 changed files with 216 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
version: '2'
services:
filebeat:
image: eason02/filebeat-alpine:6.1.1
container_name: filebeat-alpine-6.1.1
restart: always
labels:
io.rancher.container.pull_image: always
environment:
- env=${ENV}
- logstash=${LOGSTASH}
- project=${PROJECT}
network_mode: host
volumes:
- /var/lib/filebeat/:/filebeat/data
- ${APPLOG_PATH}:/home/user/
- ${NGINXLOG_PATH}:/var/log/nginx/
logging:
driver: json-file
options:
max-file: '5'
max-size: 10m