December 14, 2023, 23:11
services: pihole: container_name: pihole image: pihole/pihole:latest ports: - "8089:80/tcp" - "53:53/tcp" - "53:53/udp" - "67:67/udp" environment: - TZ=${TZ:-Etc/UTC} - WEBPASSWORD= - INTERFACE=eth0 - FTLCONF_MAXDBDAYS=365 - PIHOLE_DNS_=8.8.8.8;8.8.4.4 # see https://github.com/pi-hole/docker-pi-hole#environment-variables volumes: - ./volumes/pihole/etc-pihole:/etc/pihole - ./volumes/pihole/etc-dnsmasq.d:/etc/dnsmasq.d dns: - 127.0.0.1 - 1.1.1.1 cap_add: - NET_ADMIN restart: unless-stopped
sudo apt update sudo apt install -y ca-certificates curl gnupg sudo install -m 0755 -d /etc/apt/keyrings curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg sudo chmod a+r /etc/apt/keyrings/docker.gpg echo \ "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian \ "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null sudo apt update sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-pluginYou don't need Pip for this
parent:end0 ==> parent: end0 ipam: config: - subnet:101.129.129.0/24 ==> subnet: 101.129.129.0/24 gateway: 101.129.129.1 ip_range: 101.129.129.5/32And you have empty rows with just white spaces, remove them. Remove all rows with double comments, ex # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities Volumes, I changed the volumes to my environment, ex
volumes: - ./volumes/pihole/etc-pihole:/etc/pihole - ./volumes/pihole/etc-dnsmasq.d:/etc/dnsmasq.dNow I just have to figure out networks.pih_networks.driver_opts.ipam contains an invalid type, it should be a string, or a number`
pihole: container_name: pihole image: pihole/pihole:latest ports: - "8089:80/tcp" - "53:53/tcp" - "53:53/udp" - "67:67/udp" environment: - TZ=${TZ:-Etc/UTC} - WEBPASSWORD= # see https://sensorsiot.github.io/IOTstack/Containers/Pi-hole/#adminPassword - INTERFACE=eth0 - FTLCONF_MAXDBDAYS=365 - PIHOLE_DNS_=8.8.8.8;8.8.4.4 # see https://github.com/pi-hole/docker-pi-hole#environment-variables volumes: - ./volumes/pihole/etc-pihole:/etc/pihole - ./volumes/pihole/etc-dnsmasq.d:/etc/dnsmasq.d dns: - 127.0.0.1 - 1.1.1.1 cap_add: - NET_ADMIN restart: unless-stopped