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 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"