Enable IPv6 networking and enhance IPv4 address range for macvlan.

This commit is contained in:
2021-11-11 15:24:56 +01:00
parent 597df9abab
commit 4b8bc37942

View File

@@ -25,13 +25,17 @@ networks:
home:
external: false
driver: macvlan
enable_ipv6: true
driver_opts:
parent: enp2s0
ipam:
config:
- subnet: 192.168.178.0/24
gateway: 192.168.178.1
ip_range: 192.168.178.2/30 # .2 and .3
ip_range: 192.168.178.2/29 # 2 - 6
- subnet: fd00::/64
gateway: fd00::de15:c8ff:feec:9960
ip_range: fd00::1/80
name: home
@@ -43,6 +47,7 @@ services:
container_name: pihole
environment:
ServerIP: 192.168.178.2
ServerIPv6: fd00::2
TZ: "Europe/Berlin"
WEBPASSWORD: "lmaa,dw."
PIHOLE_DNS_: 192.168.178.3;192.168.178.3
@@ -52,6 +57,7 @@ services:
networks:
home:
ipv4_address: 192.168.178.2
ipv6_address: fd00::2
ports:
- "80:80"
- "443:443"
@@ -70,6 +76,7 @@ services:
networks:
home:
ipv4_address: 192.168.178.3
ipv6_address: fd00::3
ports:
- "53:53/tcp"
- "53:53/udp"