1version: "3.3"
2services:
3 pihole:
4 container_name: pihole
5 image: pihole/pihole:latest
6 ports:
7 - "53:53/tcp"
8 - "53:53/udp"
9 - "67:67/udp"
10 - "8082:80/tcp" # this is for your dashboard
11 environment:
12 - TZ=America/Denver # change this to your timezone
13 - WEBPASSWORD=password # put in the password you want to use to login to pi-hole
14 volumes:
15 - '/opt/pihole/etc/pihole:/etc/pihole'
16 - '/opt/pihole/etc/dnsmasq.d:/etc/dnsmasq.d'
17 - '/opt/pihole/etc/resolv.conf:/etc/resolv.conf'
18 restart: unless-stopped
19 networks:
20 pihole_local_network:
21 ipv4_address: 172.25.0.10
22
23 stubby:
24 container_name: stubby
25 image: carterfields/stubby
26 restart: unless-stopped
27 volumes:
28 - /home/stubby.yml:/usr/local/etc/stubby/stubby.yml
29 networks:
30 pihole_local_network:
31 ipv4_address: 172.25.0.11 #this will be your upstream DNS server in Pi-Hole
32
33networks:
34 pihole_local_network:
35 external: true
Created: Wed, 25 Oct 2023 15:4:20 +0
Expires: Never