Docker-compose configuration for pi-hole using unbound. Aimed towards laptop using.
- Update OS / internet adapter DNS servers
- Default
127.0.0.1
1.1.1.1
(Cloudflare - change per your preference)
- If using pi-hole at home/work already
[Pi-hole IP]
(e.g.192.168.1.20
)127.0.0.1
1.1.1.1
(Cloudflare - change per your preference)
-
Navigate to
docker_unbound_pihole_for_laptop
project directory from command line, run: -
Run (3 options, depending on setup/preferences):
-docker-compose up
(allows monitoring and CTRL+C to terminate)
-docker-compose up -d
(daemon, running in background)
-Run docker_unbound_pihole_for_laptop
image in Docker Desktop application
- Done!
This is basically a pi-hole container running in docker. It is meant to be run on a mobile device (e.g. a laptop) where you are likely to not be at home or at a friend's house who uses pi-hole already. Because you don't want to lug around your Raspberry Pi, router running pi-hole, or equivalent thin client DNS server, this can be run locally and you get all the benefit of pi-hole!