This commit is contained in:
2026-02-02 19:43:16 +01:00
parent edb49621ad
commit 69ceb80b4d
43 changed files with 594 additions and 337 deletions

View File

@@ -1,9 +1,11 @@
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
#container_name: pihole
image: pihole/pihole:latest
hostname: pihole
networks:
- pihole
ports:
# DNS Ports
- "53:53/tcp"
@@ -30,4 +32,25 @@ services:
# See https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
# Required if you are using Pi-hole as your DHCP server, else not needed
- NET_ADMIN
restart: unless-stopped
#restart: unless-stopped
deploy:
placement:
constraints:
- node.role == manager
labels:
- homepage.group=Infrastructure
- homepage.name=pihole
- homepage.icon=pi-hole.png
- homepage.href=https://pihole.home.ramberg.net/
# Widget Configuration
- homepage.widget.type=pihole
- homepage.widget.url=http://swarm.home.ramberg.net:8080
- homepage.widget.version=6 # required if running v6 or higher, defaults to 5
- homepage.widget.key=homekbr1998
- homepage.widget.fields=["queries", "blocked", "blocked_percent"] # ["queries", "blocked", "blocked_percent", "gravity"]
networks:
pihole:
driver: overlay
attachable: true