community-catalog/templates/filebeat/2/docker-compose.yml

21 lines
480 B
YAML

version: '2'
services:
filebeat:
image: eason02/filebeat-alpine:6.1.1
container_name: filebeat-alpine-6.1.1
restart: 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