2020-03-16 13:44:24 +00:00
|
|
|
version: "2.3"
|
|
|
|
|
|
|
|
services:
|
|
|
|
pihole:
|
|
|
|
container_name: pihole
|
2020-05-14 14:15:36 +01:00
|
|
|
image: pihole/pihole:v5.0
|
2020-03-16 13:44:24 +00:00
|
|
|
ports:
|
2020-03-17 20:29:40 +00:00
|
|
|
- "{{ wireguard.clients.intersect.ip }}:53:53/tcp"
|
|
|
|
- "{{ wireguard.clients.intersect.ip }}:53:53/udp"
|
2020-03-16 13:44:24 +00:00
|
|
|
environment:
|
2020-03-17 18:10:06 +00:00
|
|
|
- TZ=Europe/London
|
2020-03-16 13:44:24 +00:00
|
|
|
- VIRTUAL_HOST=pihole.jakehoward.tech
|
|
|
|
volumes:
|
2020-03-17 20:29:40 +00:00
|
|
|
- ./pihole/:/etc/pihole/
|
|
|
|
- ./dnsmasq.d/:/etc/dnsmasq.d/
|
2020-03-16 13:44:24 +00:00
|
|
|
restart: unless-stopped
|
|
|
|
labels:
|
|
|
|
- "traefik.enable=true"
|
|
|
|
- "traefik.http.routers.pihole.rule=Host(`pihole.jakehoward.tech`)"
|
|
|
|
- "traefik.http.routers.pihole.tls.certresolver=le"
|
|
|
|
- "traefik.http.routers.pihole.middlewares=internal-only@file"
|
|
|
|
- "traefik.http.services.pihole-pihole.loadbalancer.server.port=80"
|