Install pihole
Eventially it'll replace dnsmasq, but not today
This commit is contained in:
24
ansible/roles/docker/files/pihole/docker-compose.yml
Normal file
24
ansible/roles/docker/files/pihole/docker-compose.yml
Normal file
@ -0,0 +1,24 @@
|
||||
version: "2.3"
|
||||
|
||||
services:
|
||||
pihole:
|
||||
container_name: pihole
|
||||
image: pihole/pihole:v4.4
|
||||
ports:
|
||||
- "{{ wireguard.clients.intersect.ip }}:5353:53/tcp"
|
||||
- "{{ wireguard.clients.intersect.ip }}:5353:53/udp"
|
||||
environment:
|
||||
- TZ=Europe/London'
|
||||
- VIRTUAL_HOST=pihole.jakehoward.tech
|
||||
- WEBPASSWORD={{ pihole_password }}
|
||||
volumes:
|
||||
- ./etc-pihole/:/etc/pihole/
|
||||
- ./etc-dnsmasq.d/:/etc/dnsmasq.d/
|
||||
restart: unless-stopped
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.pihole.rule=Host(`pihole.jakehoward.tech`)"
|
||||
- "traefik.http.routers.pihole.tls=true"
|
||||
- "traefik.http.routers.pihole.tls.certresolver=le"
|
||||
- "traefik.http.routers.pihole.middlewares=internal-only@file"
|
||||
- "traefik.http.services.pihole-pihole.loadbalancer.server.port=80"
|
Reference in New Issue
Block a user