From f2f7a03e8dba61c570dc18a1b519fdbac8f1fdee Mon Sep 17 00:00:00 2001 From: redbeardymcgee Date: Sat, 12 Apr 2025 12:16:28 -0500 Subject: [PATCH] feat(pihole): add Pi-hole --- README.md | 2 +- quadlets/pi-hole/pihole.container | 45 +++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+), 1 deletion(-) create mode 100644 quadlets/pi-hole/pihole.container diff --git a/README.md b/README.md index 8955f3b..dd14eeb 100644 --- a/README.md +++ b/README.md @@ -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/) diff --git a/quadlets/pi-hole/pihole.container b/quadlets/pi-hole/pihole.container new file mode 100644 index 0000000..df6cefe --- /dev/null +++ b/quadlets/pi-hole/pihole.container @@ -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 +