Skip to content

Commit

Permalink
change position when checking if domain name enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
fijar-lazuardy committed Feb 17, 2024
1 parent 8b470f3 commit db22029
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions templates/docker-compose.yml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -64,20 +64,19 @@ services:
- ./grafana/provisioning/:/etc/grafana/provisioning/
depends_on:
- prometheus
{% if domain_name_enable and domain_name and domain_grafana %}
- nginx-proxy
environment:
- VIRTUAL_HOST={{ domain_grafana }}.{{ domain_name }}
- VIRTUAL_PORT=3000
{% endif %}
ports:
- 3030:3000
env_file:
- ./grafana/config.monitoring
networks:
- back-tier
- front-tier
{% if domain_name_enable and domain_name and domain_grafana %}
depends_on:
- nginx-proxy
environment:
- VIRTUAL_HOST={{ domain_grafana }}.{{ domain_name }}
- VIRTUAL_PORT=3000
{% endif %}

ping:
image: prom/blackbox-exporter:latest
Expand Down

0 comments on commit db22029

Please sign in to comment.