From 8cc2fb6dd5a85fc11c3680c7fd7d820282f17866 Mon Sep 17 00:00:00 2001 From: david Date: Sat, 17 Jan 2026 02:43:57 -0500 Subject: [PATCH] first commit --- pihole.container | 28 ++++++++++++++++++++++++++++ pihole.env | 3 +++ 2 files changed, 31 insertions(+) create mode 100644 pihole.container create mode 100644 pihole.env diff --git a/pihole.container b/pihole.container new file mode 100644 index 0000000..a1b7be4 --- /dev/null +++ b/pihole.container @@ -0,0 +1,28 @@ +[Unit] +Description=Pi-hole Systemwide Ad Blocker +After=network.target +Wants=network.target + +[Container] +ContainerName=pihole +Image=docker.io/pihole/pihole:latest +AutoUpdate=registry +PublishPort=5353:53/tcp +PublishPort=5353:53/udp +PublishPort=8181:80/tcp +PublishPort=4433:443/tcp +#Uncomment the below if using Pi-hole as your DHCP Server +#PublishPort=67:67/udp +#Uncomment the line below if you are using Pi-hole as your NTP server +#PublishPort=123:123/udp +EnvironmentFile=pihole.env +Volume=etc-pihole:/etc/pihole +AddCapability=NET_ADMIN +AddCapability=SYS_TIME +AddCapability=SYS_NICE + +[Service] +Restart=unless-stopped + +[Install] +WantedBy=default.target diff --git a/pihole.env b/pihole.env new file mode 100644 index 0000000..a676694 --- /dev/null +++ b/pihole.env @@ -0,0 +1,3 @@ +TZ=America/New_York +FTLCONF_webserver_api_password:oddsbodikins +FTLCONF_dns_listeningmode=ALL