Skip to content

Instantly share code, notes, and snippets.

@crissilvaeng
Last active February 10, 2024 05:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save crissilvaeng/449dabc3b94ebdbcd00d8c020f4a3423 to your computer and use it in GitHub Desktop.
Save crissilvaeng/449dabc3b94ebdbcd00d8c020f4a3423 to your computer and use it in GitHub Desktop.
Pi-hole (docker+macvlan+ipv6)
version: '3'
services:
app:
image: jacklul/pihole:latest
environment:
TZ: America/Sao_Paulo
FTLCONF_LOCAL_IPV4: 192.168.0.10
FTLCONF_LOCAL_IPV6: 2804:14d:5c5a:a96a::10
DNSSEC: true
PIHOLE_DNS_: 8.8.8.8;8.8.4.4;2001:4860:4860::8888;2001:4860:4860::8844
ADLISTS_URL: https://v.firebog.net/hosts/lists.php?type=tick
volumes:
- /mnt/storage/pihole/etc-pihole/:/etc/pihole/
- /mnt/storage/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/
networks:
default:
ipv4_address: 192.168.0.10
ipv6_address: 2804:14d:5c5a:a96a::10
restart: unless-stopped
networks:
default:
name: dualstack
external: true
docker network create --driver=macvlan \
--subnet=192.168.0.0/24 --gateway=192.168.0.1 \
--subnet=2804:14d:5c5a:a96a::/64 --gateway=2804:14d:5c5a:a96a:ce58:30ff:fe00:eb79 \
--ipv6 -o parent=end0 dualstack
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment