Last active
June 22, 2021 20:23
-
-
Save parrotmac/2371389ff76d33b41efee39bffeefcda to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3.4" | |
| # More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/ | |
| services: | |
| pihole: | |
| container_name: pihole | |
| image: pihole/pihole:latest | |
| ports: | |
| - "10.42.0.0:53:53/tcp" | |
| - "10.42.0.0:53:53/udp" | |
| # - "10.42.0.0:67:67/udp" Not needed as IPs are handled by Wireguard setup | |
| - "10.42.0.0:80:80/tcp" | |
| environment: | |
| TZ: 'America/Chicago' | |
| # WEBPASSWORD: 'set a secure password here or it will be random' | |
| # Volumes store your data between container upgrades | |
| volumes: | |
| - './etc-pihole/:/etc/pihole/' | |
| - './etc-dnsmasq.d/:/etc/dnsmasq.d/' | |
| # Recommended but not required (DHCP needs NET_ADMIN) | |
| # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities | |
| cap_add: | |
| - NET_ADMIN | |
| network_mode: host | |
| restart: unless-stopped |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Required
preroutingnftablesrules: