Enable IPv6 networking and enhance IPv4 address range for macvlan.
This commit is contained in:
@@ -25,13 +25,17 @@ networks:
|
|||||||
home:
|
home:
|
||||||
external: false
|
external: false
|
||||||
driver: macvlan
|
driver: macvlan
|
||||||
|
enable_ipv6: true
|
||||||
driver_opts:
|
driver_opts:
|
||||||
parent: enp2s0
|
parent: enp2s0
|
||||||
ipam:
|
ipam:
|
||||||
config:
|
config:
|
||||||
- subnet: 192.168.178.0/24
|
- subnet: 192.168.178.0/24
|
||||||
gateway: 192.168.178.1
|
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
|
name: home
|
||||||
|
|
||||||
|
|
||||||
@@ -43,6 +47,7 @@ services:
|
|||||||
container_name: pihole
|
container_name: pihole
|
||||||
environment:
|
environment:
|
||||||
ServerIP: 192.168.178.2
|
ServerIP: 192.168.178.2
|
||||||
|
ServerIPv6: fd00::2
|
||||||
TZ: "Europe/Berlin"
|
TZ: "Europe/Berlin"
|
||||||
WEBPASSWORD: "lmaa,dw."
|
WEBPASSWORD: "lmaa,dw."
|
||||||
PIHOLE_DNS_: 192.168.178.3;192.168.178.3
|
PIHOLE_DNS_: 192.168.178.3;192.168.178.3
|
||||||
@@ -52,6 +57,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
home:
|
home:
|
||||||
ipv4_address: 192.168.178.2
|
ipv4_address: 192.168.178.2
|
||||||
|
ipv6_address: fd00::2
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
@@ -70,6 +76,7 @@ services:
|
|||||||
networks:
|
networks:
|
||||||
home:
|
home:
|
||||||
ipv4_address: 192.168.178.3
|
ipv4_address: 192.168.178.3
|
||||||
|
ipv6_address: fd00::3
|
||||||
ports:
|
ports:
|
||||||
- "53:53/tcp"
|
- "53:53/tcp"
|
||||||
- "53:53/udp"
|
- "53:53/udp"
|
||||||
|
|||||||
Reference in New Issue
Block a user