piholennetworkisolatfromtherestofthewebservices

This commit is contained in:
2026-05-08 22:41:14 +02:00
parent 61c24f42eb
commit 8326f052d9

View File

@@ -13,7 +13,6 @@ services:
- "${WG_GUEST_IP}:53:53/udp" - "${WG_GUEST_IP}:53:53/udp"
- "${WG_ADMIN_IP}:53:53/tcp" - "${WG_ADMIN_IP}:53:53/tcp"
- "${WG_ADMIN_IP}:53:53/udp" - "${WG_ADMIN_IP}:53:53/udp"
- "${WG_ADMIN_IP}:${PIHOLE_WEB_PORT}:80"
environment: environment:
TZ: ${TZ} TZ: ${TZ}
WEBPASSWORD: ${WEBPASSWORD} WEBPASSWORD: ${WEBPASSWORD}
@@ -23,20 +22,25 @@ services:
FTLCONF_misc_etc_dnsmasq_d: 'true' FTLCONF_misc_etc_dnsmasq_d: 'true'
networks: networks:
- dns_net - dns_net
- proxy_net - dns_internal
volumes: volumes:
- pihole_data:/etc/pihole - pihole_data:/etc/pihole
- ./pihole_dnsmasq:/etc/dnsmasq.d - ./pihole_dnsmasq:/etc/dnsmasq.d
depends_on:
- unbound
cap_add: cap_add:
- NET_ADMIN - NET_ADMIN
unbound:
image: mvance/unbound:latest
container_name: unbound
restart: unless-stopped
networks:
- dns_net
networks: networks:
dns_net: dns_net:
external: true external: true
proxy_net: dns_internal:
external: true external: true
volumes: volumes:
pihole_data: pihole_data:
pihole_dnsmasq: pihole_dnsmasq: