monitoring.filebeat: allow additional volumes

This commit is contained in:
Vasili Karaev 2020-11-23 11:17:10 +03:00
parent c94c1e784d
commit 74a2288150
1 changed files with 5 additions and 0 deletions

View File

@ -10,6 +10,11 @@ services:
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./filebeat.yml:/usr/share/filebeat/filebeat.yml:ro
- ./modules.d:/usr/share/filebeat/modules.d:ro
{% if filebeat is defined and filebeat.docker is defined }
{% for volume in filebeat.docker.additional_volumes | default([]) %}
- {{ volume }}
{% for %}
{% if %}
restart: unless-stopped
logging:
driver: json-file