services: pihole: image: pihole/pihole:latest container_name: pihole restart: always network_mode: host environment: - TZ=Europe/London - WEBPASSWORD=${PIHOLE_PASSWORD:-admin} - WEBPORT=8080 - DNSMASQ_LISTENING=all volumes: - ./etc-pihole:/etc/pihole - ./etc-dnsmasq.d:/etc/dnsmasq.d labels: - "traefik.enable=true" - "traefik.http.routers.pihole.rule=Host(`pihole.zea.lt`)" - "traefik.http.routers.pihole.entrypoints=websecure" - "traefik.http.routers.pihole.tls.certresolver=leresolver" - "traefik.http.routers.pihole.middlewares=pihole-prefix" - "traefik.http.middlewares.pihole-prefix.addprefix.prefix=/admin" - "traefik.http.services.pihole.loadbalancer.server.port=8080"