Merge custom dnsmasq config into pihole

This commit is contained in:
Jake Howard
2020-03-17 20:29:40 +00:00
parent 8093bcbcbb
commit 24686f8cb3
9 changed files with 29 additions and 83 deletions

View File

@ -0,0 +1,3 @@
{% for host in internal_hostnames %}
host-record={{ host }},{{ wireguard.clients.intersect.ip }}
{% endfor %}

View File

@ -5,14 +5,14 @@ services:
container_name: pihole
image: pihole/pihole:v4.4
ports:
- "{{ wireguard.clients.intersect.ip }}:5353:53/tcp"
- "{{ wireguard.clients.intersect.ip }}:5353:53/udp"
- "{{ wireguard.clients.intersect.ip }}:53:53/tcp"
- "{{ wireguard.clients.intersect.ip }}:53:53/udp"
environment:
- TZ=Europe/London
- VIRTUAL_HOST=pihole.jakehoward.tech
volumes:
- ./etc-pihole/:/etc/pihole/
- ./etc-dnsmasq.d/:/etc/dnsmasq.d/
- ./pihole/:/etc/pihole/
- ./dnsmasq.d/:/etc/dnsmasq.d/
restart: unless-stopped
labels:
- "traefik.enable=true"