Last active
May 15, 2024 21:58
-
-
Save jglien/fd7c86382dca6c8f60868fe2c52898a5 to your computer and use it in GitHub Desktop.
PiHole Working Compose
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
# Generated from https://github.com/pi-hole/docker-pi-hole/?tab=readme-ov-file#quick-start | |
name: pihole # swapped version to this. version is obsolete | |
# 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 | |
# For DHCP it is recommended to remove these ports and instead add: network_mode: "host" | |
ports: | |
- "53:53/tcp" | |
- "53:53/udp" | |
# - "67:67/udp" # Only required if you are using Pi-hole as your DHCP server | |
- "8080:80/tcp" # changed to port 8080 | |
dns: 127.0.0.1 # system resolver, this is required (at least for my setup) | |
environment: | |
TZ: America/Denver # my timezone | |
WEBPASSWORD: "blah123" # password | |
PIHOLE_DNS_: "1.1.1.1;1.0.0.1" # CloudFlare DNS (why do they use Google by default??) | |
FTLCONF_LOCAL_IPV4: {{local IP address}} # So PiHole "knows" that it is this address, other wise 403 admin site | |
# Volumes store your data between container upgrades | |
volumes: | |
- ./etc-pihole:/etc/pihole | |
- ./etc-dnsmasq.d:/etc/dnsmasq.d | |
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities | |
# cap_add: | |
# - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed | |
restart: unless-stopped |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment