feat: Changes network configuration.

This commit is contained in:
2025-03-25 13:31:57 -04:00
parent 3ddd8c8d57
commit 82f84f8b04
2 changed files with 9 additions and 21 deletions

View File

@@ -6,11 +6,9 @@ services:
ports: ports:
- "53:53/tcp" - "53:53/tcp"
- "53:53/udp" - "53:53/udp"
- "8088:80/tcp" - "8088:80/tcp" # remove when integrated into the proxy.
networks: networks:
pihole_network: proxy: {}
ipv4_address: 192.168.50.198
priority: 1000
pihole_bridge: pihole_bridge:
ipv4_address: 192.168.100.2 ipv4_address: 192.168.100.2
priority: 900 priority: 900
@@ -29,11 +27,11 @@ services:
container_name: unbound container_name: unbound
restart: unless-stopped restart: unless-stopped
ports: ports:
- "53:53/tcp" - "5053:53/tcp"
- "53:53/udp" - "5053:53/udp"
networks: networks:
pihole_network: pihole_bridge:
ipv4_address: 192.168.50.199 ipv4_address: 192.168.100.3
volumes: volumes:
- unbound_data:/opt/unbound/etc/unbound - unbound_data:/opt/unbound/etc/unbound
@@ -43,19 +41,9 @@ networks:
ipam: ipam:
config: config:
- subnet: 192.168.100.0/24 - subnet: 192.168.100.0/24
gateway: 192.168.100.1
ip_range: 192.168.100.2/32
pihole_network: proxy:
name: pihole_network external: true
driver: macvlan
driver_opts:
parent: end0
ipam:
config:
- subnet: 192.168.50.0/24
ip_range: 192.168.50.0/24
gateway: 192.168.50.1
volumes: volumes:
pihole_data: pihole_data:

View File

@@ -3,7 +3,7 @@ TZ="America/New_York"
WEBPASSWORD="super-secret!" WEBPASSWORD="super-secret!"
DNSMASQ_LISTENING=local DNSMASQ_LISTENING=local
# This should be the server IP that pihole is running on. # This should be the server IP that pihole is running on.
PIHOLE_DNS_="192.168.50.5#5053" PIHOLE_DNS_="192.168.100.3#5053"
# This mount needs (3) folders, 'pihole', 'dnsmasq.d', 'unbound'. # This mount needs (3) folders, 'pihole', 'dnsmasq.d', 'unbound'.
NFS_MNT=":/var/nfs/shared/<mnt>" NFS_MNT=":/var/nfs/shared/<mnt>"
NFS_ADDR="192.168.1.105" NFS_ADDR="192.168.1.105"