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

@ -1,7 +0,0 @@
bogus-priv
keep-in-foreground
server=1.1.1.1
server=1.0.0.1
port=53
expand-hosts
addn-hosts=/etc/dnsmasq-hosts.conf

View File

@ -1,11 +0,0 @@
version: "2.3"
services:
vpn-dns:
image: programster/dnsmasq:latest
container_name: vpn-dns
ports:
- "{{ wireguard.clients.intersect.ip }}:53:53/udp"
volumes:
- ./dnsmasq.conf:/etc/dnsmasq.conf:ro
- ./vpn-hosts.conf:/etc/dnsmasq-hosts.conf:ro
restart: unless-stopped

View File

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

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"