Pi-hole
Posted
A black hole for Internet advertisements.
# file: `docker-compose.yml`
services:
pihole:
image: ${HONEYPI_IMAGE_REGISTRY_HOST:-docker.io}/pihole/pihole:${HONEYPI_PIHOLE_VERSION:-latest}
container_name: pihole
restart: unless-stopped
network_mode: host
volumes:
- ${HONEYPI_DATA}/pihole/etc/pihole:/etc/pihole
- ${HONEYPI_DATA}/pihole/etc/dnsmasq.d:/etc/dnsmasq.d
cap_add:
- NET_ADMIN
environment:
- WEBPASSWORD=${HONEYPI_PIHOLE_PASSWORD}
- FTLCONF_LOCAL_IPV4=${HONEYPI_PIHOLE_IP}
labels:
- traefik.enable=${HONEYPI_PIHOLE_TRAEFIK_ENABLE:-false}
- traefik.http.routers.pihole.rule=Host(`${HONEYPI_PIHOLE_HOST}`)
- traefik.http.routers.pihole.entrypoints=websecure
- traefik.http.routers.pihole.tls.certresolver=resolver
- traefik.http.routers.pihole.service=pihole
- traefik.http.services.pihole.loadbalancer.server.port=80