Last active 1685969699

For existing Synology DNS Server + AdGuard Server. AdGuard on macvlan incl. bridge and fully ipv6 support (only for fix ipv6 address)

gistfile1.txt Raw
1version: "3"
2services:
3 adguard:
4 image: adguard/adguardhome:latest
5 container_name: adguard
6 volumes:
7 - /volume1/docker/adguard/config:/opt/adguardhome/conf
8 - /volume1/docker/adguard/data:/opt/adguardhome/work/data
9 restart: always
10 networks:
11 macvlan-host:
12 ipv4_address: 192.168.178.2 # change it to your internal IPv4 exisitng network
13 ipv6_address: xxxx:xxxx:xxxx:xxxx::2 # fixed external IPv6/64 prefix + your own private /64 identifier
14 macvlan-bridge:
15 ipv4_address: 172.16.0.2 # randon private ipv4 address which is not in the same segment as above
16 ipv6_address: xxxx:xxxx:xxxx:xxxx::2 # random ipv6 address which has not the same prefix as above
17
18networks:
19 macvlan-host:
20 name: macvlan-host
21 enable_ipv6: true
22 driver: macvlan
23 driver_opts:
24 parent: eth0
25 ipam:
26 config:
27 - subnet: "192.168.178.0/16" # paste in your existing private subnet address (look on your router)
28 gateway: "192.168.178.1" # paste in your existing private gateway address (look on your router)
29 ip_range: "192.168.178.2/32" # the ip range for addresses for this macvlan. Past in your choosen address from 12 (/32 means only one to use)
30 - subnet: "xxxx:xxxx:xxxx:xxxx::/64" # paste in your existing private ipv6 subnet address (look on your router)
31 gateway: "xxxx:xxxx:xxxx:xxxx::1" # paste in your existing private ipv6 gateway address (look on your router)
32 ip_range: "xxxx:xxxx:xxxx:xxxx::2/128" # the ip range for ipv6 addresses for this macvlan. Past in your choosen address from 13 (/128 means only one to use)
33
34 macvlan-bridge:
35 name: macvlan-bridge
36 enable_ipv6: true
37 driver: bridge
38 ipam:
39 config:
40 - subnet: "172.16.0.0/24" # paste in a random private subnet address
41 gateway: "172.16.0.1" # paste in a random private gateway address
42 ip_range: "172.16.0.2/32" # the ip range for addresses for this bridge. Paste in your choosen address from 15 (/32 means only one to use)
43 - subnet: "xxxx:xxxx:xxxx:xxxx::/64" # paste in a random private ipv6 subnet address
44 gateway: "xxxx:xxxx:xxxx:xxxx::1" # paste in a random private ipv6 gateway address
45 ip_range: "xxxx:xxxx:xxxx:xxxx::2/128" # the ip range for ipv6 addresses for this bridge. Past in your choosen address from 16 (/128 means only one to use)