22 lines
438 B
YAML
22 lines
438 B
YAML
|
version: "3"
|
||
|
services:
|
||
|
filebeat:
|
||
|
image: "docker.elastic.co/beats/filebeat:7.2.0"
|
||
|
container_name: filebeat
|
||
|
user: root
|
||
|
volumes:
|
||
|
- ./filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
|
||
|
- /data/docker-data:/var/lib/docker:ro
|
||
|
- /var/run/docker.sock:/var/run/docker.sock
|
||
|
|
||
|
networks:
|
||
|
- elastic
|
||
|
|
||
|
volumes:
|
||
|
filebeat-data:
|
||
|
name: filebeat-data
|
||
|
driver: local
|
||
|
|
||
|
networks:
|
||
|
elastic:
|
||
|
driver: bridge
|