Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Pi-Hole Synology config
version: '2.4'
services:
# https://hub.docker.com/r/pihole/pihole/
pihole:
container_name: pihole
image: pihole/pihole:latest
restart: unless-stopped
environment:
- TZ=America/Los_Angeles
- DNS1=1.1.1.1
- DNS2=1.0.0.1
- WEBPASSWORD=<SETME>
ports:
- 53:53/tcp
- 53:53/udp
- 67:67/udp
- 80:80/tcp
- 443:443/tcp
volumes:
- /volume1/docker/piholedata/dnsmasq.d:/etc/dnsmasq.d
- /volume1/docker/piholedata/pihole:/etc/pihole
dns:
- 127.0.0.1
- 1.1.1.1
# 4.2.2+ only requires NET_ADMIN for using DHCP - remove if not using
# cap_add:
# - NET_ADMIN
networks:
pihole:
ipv4_address: 192.168.1.240
networks:
pihole:
driver: macvlan
driver_opts:
parent: eth0
ipam:
config:
- subnet: 192.168.1.0/24
gateway: 192.168.1.1
ip_range: 192.168.1.240/32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.