gistfile1.txt
· 2.5 KiB · Text
Bruto
version: "3"
services:
adguard:
image: adguard/adguardhome:latest
container_name: adguard
volumes:
- /volume1/docker/adguard/config:/opt/adguardhome/conf:rw
- /volume1/docker/adguard/data:/opt/adguardhome/work/data:rw
restart: always
networks:
macvlan-host:
ipv4_address: 192.168.178.2 x change it to your internal IPv4 exisitng network
ipv6_address: xxxx:xxxx:xxxx:xxxx::2 # fixed external IPv6/64 prefix + your own private /64 identifier
macvlan-bridge:
ipv4_address: 172.16.0.1 # randon private ipv4 address which is not in the same segment as above
ipv6_address: xxxx:xxxx:xxxx:xxxx::2 # random ipv6 address which has not the same prefix as above
networks:
macvlan-host:
name: macvlan-host
enable_ipv6: true
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: "192.168.178.0/16" # paste in your existing private subnet address (look on your router)
gateway: "192.168.178.1" # paste in your existing private gateway address (look on your router)
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)
- subnet: "xxxx:xxxx:xxxx:xxxx::/64" # paste in your existing private ipv6 subnet address (look on your router)
gateway: "xxxx:xxxx:xxxx:xxxx::1" # paste in your existing private ipv6 gateway address (look on your router)
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)
macvlan-bridge:
name: macvlan-bridge
enable_ipv6: true
driver: bridge
ipam:
config:
- subnet: "172.16..0/24" # paste in a random private subnet address (look on your router)
gateway: "172.16.0.1" # paste in a random private gateway address (look on your router)
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)
- subnet: "xxxx:xxxx:xxxx:xxxx::/64" # paste in a random private ipv6 subnet address
gateway: "xxxx:xxxx:xxxx:xxxx::1" # paste in a random private ipv6 gateway address
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)
1 | version: "3" |
2 | services: |
3 | adguard: |
4 | image: adguard/adguardhome:latest |
5 | container_name: adguard |
6 | volumes: |
7 | - /volume1/docker/adguard/config:/opt/adguardhome/conf:rw |
8 | - /volume1/docker/adguard/data:/opt/adguardhome/work/data:rw |
9 | restart: always |
10 | networks: |
11 | macvlan-host: |
12 | ipv4_address: 192.168.178.2 x 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.1 # 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 | |
18 | networks: |
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/24" # paste in a random private subnet address (look on your router) |
41 | gateway: "172.16.0.1" # paste in a random private gateway address (look on your router) |
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) |