Skip to content

Instantly share code, notes, and snippets.

@Iristyle
Created May 17, 2020 06:53
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 Iristyle/b382ba26a8fcd7243c70c6ef8fb44ad9 to your computer and use it in GitHub Desktop.
Save Iristyle/b382ba26a8fcd7243c70c6ef8fb44ad9 to your computer and use it in GitHub Desktop.
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