Pi-Hole Docker-Compose

das Netzwerk docker_subnet muss angelegt sein oder an eigene Umgebung angepasst werden, oder die Zeilen Networks entfernen für Default

Volume ist ein Host bind

Docker-Compose

services:
  Pi-Hole:
    container_name: "Pi-Hole"
    hostname: "pi-hole"
    image: "pihole/pihole:latest"
    restart: always
    environment:
      - "TZ=Europe/Berlin"
      - "phpver=php"
      - "PHP_ERROR_LOG=/var/log/lighttpd/error-pihole.log"
      - "IPv6=True"
      - "S6_KEEP_ENV=1"
      - "S6_BEHAVIOUR_IF_STAGE2_FAILS=2"
      - "S6_CMD_WAIT_FOR_SERVICES_MAXTIME=0"
      - "FTLCONF_LOCAL_IPV4=0.0.0.0"
      - "FTL_CMD=no-daemon"
      - "DNSMASQ_USER=pihole"
      - "WEBPASSWORD=geheimpasswort"
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "67:67/udp"
      - "80:80/tcp"
    volumes:
      - "/docker_data/pi-hole/etc-dnsmasq.d:/etc/dnsmasq.d"
      - "/docker_data/pi-hole/etc-pihole:/etc/pihole"
    networks:
      docker_subnet:
        ipv4_address: 172.18.0.15

networks:
  docker_subnet:
    external: true