This commit is contained in:
2025-11-30 15:35:00 +01:00
parent 63bf6b805b
commit bf052fae54
4 changed files with 50 additions and 21 deletions

View File

@@ -1,3 +1,11 @@
networks:
pihole:
driver: overlay
attachable: true
ipam:
config:
- subnet: 192.168.78.0/24
driver: default
services:
pihole:
cap_add:
@@ -11,13 +19,25 @@ services:
TZ: Europe/Bratislava
hostname: m-server
image: pihole/pihole:latest
networks:
pihole:
ipv4_address: 192.168.78.254
ports:
- 53:53
- 9380:80
- 9343:443
- target: 53
published: 53
protocol: udp
mode: ingress
- target: 80
published: 9380
protocol: tcp
mode: ingress
- target: 443
published: 9343
protocol: tcp
mode: ingress
volumes:
- pihole-etc:/etc/pihole
- pihole-dnsmasq.d:/etc/dnsmasq.d
- /share/docker_data/pihole/etc-pihole:/etc/pihole
- /share/docker_data/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
deploy:
labels:
com.centurylinklabs.watchtower.enable: 'true'
@@ -39,6 +59,3 @@ services:
placement:
constraints:
- node.role == manager
volumes:
pihole-etc:
pihole-dnsmasq.d: