version: "3.3" services: pihole: container_name: pihole image: pihole/pihole:latest ports: - "53:53/tcp" - "53:53/udp" - "67:67/udp" - "8082:80/tcp" # this is for your dashboard environment: - TZ=America/Denver # change this to your timezone - WEBPASSWORD=password # put in the password you want to use to login to pi-hole volumes: - '/opt/pihole/etc/pihole:/etc/pihole' - '/opt/pihole/etc/dnsmasq.d:/etc/dnsmasq.d' - '/opt/pihole/etc/resolv.conf:/etc/resolv.conf' restart: unless-stopped networks: pihole_local_network: ipv4_address: 172.25.0.10 stubby: container_name: stubby image: carterfields/stubby restart: unless-stopped volumes: - /home/stubby.yml:/usr/local/etc/stubby/stubby.yml networks: pihole_local_network: ipv4_address: 172.25.0.11 #this will be your upstream DNS server in Pi-Hole networks: pihole_local_network: external: true