prometheus: add extra hosts parameter
This commit is contained in:
parent
0a932540fa
commit
8ecfb90707
|
|
@ -12,6 +12,9 @@ services:
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- "{{ prometheus__port }}:9090"
|
- "{{ prometheus__port }}:9090"
|
||||||
|
{% if prometheus is defined and prometheus.docker is defined %}
|
||||||
|
extra_hosts: {{ prometheus.docker.extra_hosts | default([]) | to_json }}
|
||||||
|
{% endif %}
|
||||||
logging:
|
logging:
|
||||||
driver: "json-file"
|
driver: "json-file"
|
||||||
options:
|
options:
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue