Skip to content

Commit

Permalink
Fixing docker compose file
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Rose committed Oct 2, 2024
1 parent 4a8f24b commit 4e76e03
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions templates/pi-hole-docker-compose.yml.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
# {{ ansible_managed }}
---
# Use the same networks as internet-monitoring.
{% if domain_name_enable and domain_name and domain_pihole %}
{# Make sure pihole and nginx-proxy are in the same network #}
networks:
{% if domain_name_enable and domain_name and domain_pihole %}
Expand Down Expand Up @@ -37,12 +36,9 @@ services:
VIRTUAL_HOST: {{ domain_pihole }}.{{ domain_name }}
VIRTUAL_PORT: 80
PROXY_LOCATION: {{ domain_pihole }}
{% endif %}
networks:
{% if domain_name_enable and domain_name and domain_pihole %}
- front-tier
{% endif %}
- back-tier
dns:
- 127.0.0.1
- 8.8.8.8
Expand Down Expand Up @@ -72,7 +68,7 @@ services:
container_name: pihole-exporter
image: ekofr/pihole-exporter:latest
restart: unless-stopped
hostname: '{{ pihole_hostname }}-exporter'
hostname: 'pihole-exporter'
ports:
- "9617:9617"
environment:
Expand Down

0 comments on commit 4e76e03

Please sign in to comment.