mirror of
https://gitlab.sectorq.eu/home/docker-compose.git
synced 2025-12-14 10:24:53 +01:00
build
This commit is contained in:
@@ -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:
|
||||
Reference in New Issue
Block a user