Merge custom dnsmasq config into pihole
This commit is contained in:
@ -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
|
@ -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
|
@ -1,3 +0,0 @@
|
||||
{% for host in internal_hostnames %}
|
||||
{{ wireguard.clients.intersect.ip }} {{ host }}
|
||||
{% endfor %}
|
3
ansible/roles/docker/files/pihole/dnsmasq-vpn.conf
Normal file
3
ansible/roles/docker/files/pihole/dnsmasq-vpn.conf
Normal file
@ -0,0 +1,3 @@
|
||||
{% for host in internal_hostnames %}
|
||||
host-record={{ host }},{{ wireguard.clients.intersect.ip }}
|
||||
{% endfor %}
|
@ -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"
|
||||
|
Reference in New Issue
Block a user