prometheus: add extra hosts parameter

This commit is contained in:
Vasili Karaev 2020-07-27 20:08:37 +03:00
parent 0a932540fa
commit 8ecfb90707
1 changed files with 3 additions and 0 deletions

View File

@ -12,6 +12,9 @@ services:
restart: unless-stopped
ports:
- "{{ prometheus__port }}:9090"
{% if prometheus is defined and prometheus.docker is defined %}
extra_hosts: {{ prometheus.docker.extra_hosts | default([]) | to_json }}
{% endif %}
logging:
driver: "json-file"
options: