Skip to content

Commit c38dc5f

Browse files
authored
Merge pull request #812 from Paraphraser/20251112-pihole6-master
2025-11-12 pihole6 - master branch - PR 1 of 2
2 parents 00c7746 + 4308285 commit c38dc5f

File tree

4 files changed

+820
-1
lines changed

4 files changed

+820
-1
lines changed

.templates/pihole6/service.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
pihole6:
2+
# see https://sensorsiot.github.io/IOTstack/Containers/Pi-hole/
3+
container_name: pihole6
4+
image: pihole/pihole:latest
5+
restart: unless-stopped
6+
x-network_mode: host
7+
ports:
8+
- "8089:80/tcp"
9+
- "53:53/tcp"
10+
- "53:53/udp"
11+
- "67:67/udp"
12+
# - "4443:443/tcp"
13+
environment:
14+
# see https://docs.pi-hole.net/docker/configuration/
15+
TZ: ${TZ:-Etc/UTC}
16+
FTLCONF_webserver_api_password: '${PIHOLE_ADMIN_PASSWORD:-}'
17+
FTLCONF_dns_interface: eth0
18+
FTLCONF_database_maxDBdays: 365
19+
FTLCONF_dns_upstreams: 8.8.8.8;8.8.4.4
20+
volumes:
21+
- ./volumes/pihole6/etc-pihole:/etc/pihole
22+
- ./volumes/pihole6/etc-dnsmasq.d:/etc/dnsmasq.d
23+
dns:
24+
- 127.0.0.1
25+
- 1.1.1.1
26+
cap_add:
27+
- NET_ADMIN
28+

docs/Containers/Pi-hole.md

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,29 @@
1-
# Pi-hole
1+
# Pi-hole version 5
22

33
Pi-hole is a fantastic utility to reduce ads.
44

5+
## Pi-hole variants { #variants }
6+
7+
In early 2025, Pi-hole underwent some major changes which broke compatibility with previous versions. In particular, the naming scheme for environment variables changed drastically. For IOTstack users, the immediate result of "pulling" the `latest` image from DockerHub was silent behavioural changes by the container.
8+
9+
IOTstack reacted to this problem by pinning to version 2024.07.0. This was to "hold the ring" pending a solution. The solution is that the IOTstack menu now supports two variants:
10+
11+
* **Pi-hole 5**
12+
13+
The IOTstack menu refers to this as `pihole`. It is pinned to version [2024.07.0](https://github.com/pi-hole/docker-pi-hole/releases/tag/2024.07.0) which is the final release of version 5. This document describes version 5.
14+
15+
* **Pi-hole 6**
16+
17+
The IOTstack menu refers to this as `pihole6`. That variant tracks DockerHub images with the `latest` tag so it will keep updating as later versions are released. See [Pi-hole version 6](./Pi-hole6.md).
18+
19+
If you are installing Pi-hole for the first time, you should choose `pihole6` from the menu.
20+
21+
See [migration](#migration) if you are currently running Pi-hole 5 and want to upgrade to Pi-hole 6.
22+
23+
Note:
24+
25+
* You can't run both versions at the same time. That is because they both claim the same network ports.
26+
527
## References { #references }
628

729
* [Pi-hole on GitHub](https://github.com/pi-hole/docker-pi-hole)

0 commit comments

Comments
 (0)