.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user