Skip to content

Instantly share code, notes, and snippets.

@Nitrousoxide
Created July 11, 2023 02:11
Show Gist options
  • Save Nitrousoxide/686ff7e5c5ef15b24680f5a04b41e86d to your computer and use it in GitHub Desktop.
Save Nitrousoxide/686ff7e5c5ef15b24680f5a04b41e86d to your computer and use it in GitHub Desktop.
pihole-unbound
version: '2'
services:
pihole:
container_name: pihole_no_wireguard
image: pihole/pihole:latest
hostname: pi-hole
mac_address: d0:ca:ab:cd:ef:01
#cap_add: # Uncomment if you want to use Pi-Hole for DHCP
# - NET_ADMIN
ports:
- 443/tcp
- 53/tcp
- 53/udp
# - 67/udp # Uncomment if you want to use Pi-Hole for DHCP
- 80/tcp
- 22/tcp
environment:
- FTLCONF_LOCAL_IPV4=192.168.7.5
- WEBPASSWORD=${WEBPASSWORD}
- PIHOLE_DNS_=192.168.7.6;192.168.7.13
volumes:
- "/volume1/AppData/Cpy_of_NAS_AppData/pihole-unbound/pihole/volume:/etc/pihole:rw"
- "/volume1/AppData/Cpy_of_NAS_AppData/pihole-unbound/pihole/config/dnsmasq:/etc/dnsmasq.d"
networks:
home:
ipv4_address: 192.168.7.5
restart: always
unbound:
container_name: unbound_no_wireguard
image: mvance/unbound:latest
hostname: syn-unbound
mac_address: d0:ca:ab:cd:ef:02
ports:
- 53/tcp
- 53/udp
networks:
home:
ipv4_address: 192.168.7.6
restart: always
networks:
home:
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: 192.168.7.0/24
gateway: 192.168.7.1
ip_range: 192.168.7.5/30 # 192.168.1.5 and 192.168.1.6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment