feat(pihole): add Pi-hole

This commit is contained in:
redbeardymcgee 2025-04-12 12:16:28 -05:00
parent f3b4b61137
commit f2f7a03e8d
2 changed files with 46 additions and 1 deletions

View file

@ -212,7 +212,7 @@ that I intend to add to this repository. It is still growing, and I welcome
- [ ] [ntop](https://www.ntop.org/)
- [ ] [OpenNMS](https://www.opennms.org/)
- [x] [OpenSpeedTest](https://openspeedtest.com)
- [ ] [PiHole](https://pi-hole.net/)
- [x] [PiHole](https://pi-hole.net/)
- [x] [Pocket ID](https://github.com/stonith404/pocket-id)
- [ ] [Pod Arcade](https://www.pod-arcade.com/)
- [x] [Postiz](https://postiz.com/)

View file

@ -0,0 +1,45 @@
[Unit]
Description=Pi-hole
[Service]
Restart=on-failure
TimeoutStartSec=900
[Install]
WantedBy=default.target
[Container]
Image=docker.io/pihole:latest
ContainerName=pihole
## WARNING: This should not be enabled unless you have good backups and
# recovery plans. DNS is a critical piece of you network.
# AutoUpdate=registry
# DHCP
# AddCapability=CAP_NET_ADMIN
# NTP
# AddCapability=CAP_SYS_TIME
# Optional
# AddCapability=CAP_SYS_NICE
Network=pihole.network
HostName=pihole
# DNS
PublishPort=53:53/tcp
PublishPort=53:53/udp
# HTTP
# PublishPort=80:80/tcp
# HTTPS
# PublishPort=443:443/tcp
# DHCP
# PublishPort=67:67/udp
# NTP
# PublishPort=123:123/udp
Volume=pihole-etc:/etc/pihole
Environment=TZ=Etc/UTC
Environment=FTLCONF_dns_listeningMode=all
Secret=pihole-api-password,type=env,target=FTLCONF_webserver_api_password