Open Slyke opened 4 years ago
Actually, I just spent a few hours trying to get it running. It's been a pain. Unbound is actually quite difficult to setup inside docker, with configs.
Upon further investigation, I found you can inject entries into your /etc/hosts
file with docker-compose:
pihole:
container_name: pihole
image: pihole/pihole:latest
restart: unless-stopped
ports:
- 53:53/tcp
- 53:53/udp
- 67:67/udp
- 80:80/tcp
- 443:443/tcp
cap_add:
- NET_ADMIN
volumes:
- ./volumes/pihole/etc-pihole/:/etc/pihole/
- ./volumes/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/
extra_hosts:
router: 192.168.7.1
tree: 4.3.2.1
This would go well with https://github.com/gcgarner/IOTstack/issues/128
Hello,
Since nginx reverse proxy hasn't been put in yet, I didn't submit a PR which would probably have merge conflicts.
I did find a good config that works with PiHole for the Unbound DNS service:
https://gist.github.com/SeanChristopherConway/db780ac550198e1e52231f9a62046af0#file-docker-compose-yaml
The above configuration has pihole and unbound working together.
Happy to submit this as a PR too and tie it into the script.