add filebeat for rancher catalog for fast deployment
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user