I am pulling the pi-hole image from https://hub.docker.com/r/pihole/pihole/
More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
docker volume create pihole-etc
docker volume create pihole-dnsmasq
docker-compose up
Outside my network, names are served in Cloudflare. I use the same domain inside my network (wildsong.biz) so that things line up nicely whether I am at work or at home.
To resolve names correctly inside my network, I mount a volume "pihole_dnsmasq" and maintain a file wildsong.conf.
I run this container behind a reverse proxy.
To make it work with my proxy (brian32768/docker-proxy), I made these changes:
- define VIRTUAL_HOST as pihole.wildsong.biz
- add network "proxy_net" so the proxy container can see into this network
- expose port 80