| 12345678910111213141516171819202122232425262728293031323334353637383940414243 |
- version: "2"
- # More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
- services:
- pihole:
- container_name: pihole
- image: devonkupiec/pihole-unbound:latest
- ports:
- - 53:53/tcp
- - 53:53/udp
- - 67:67/udp
- - 81:80/tcp
- - 8443:443/tcp
- environment:
- - TZ=Europe/London
- - WEBPASSWORD=password
- - ServerIP=172.17.1.3
- - IPv6=false
- - DNS1=127.0.0.1#5353
- - DNS2=9.9.9.9
- volumes:
- - /srv/dev-disk-by-id-md-name-hadeya-HomeArray/appdata/phole-unbound/etc-pihole/:/etc/pihole/
- - /srv/dev-disk-by-id-md-name-hadeya-HomeArray/appdata/phole-unbound/etc-dnsmasq.d/:/etc/dnsmasq.d/
- - /srv/dev-disk-by-id-md-name-hadeya-HomeArray/appdata/phole-unbound/etc-unbound/:/etc/unbound/
- # Recommended but not required (DHCP needs NET_ADMIN)
- # https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
- cap_add:
- - NET_ADMIN
- hostname: pi.hole
- networks:
- pihole_network:
- ipv4_address: 172.17.1.2
- restart: unless-stopped
- networks:
- pihole_network: # Name of network
- driver: macvlan # Use the macvlan network driver
- driver_opts:
- parent: eno1 # If open vSwitch is disabled use eth0 (or eth1 +)
- ipam:
- config:
- - subnet: 172.17.1.0/24 # Specify subnet
- gateway: 172.17.1.1 # Gateway address
- ip-range: 172.17.1.1/28 # Available IP addresses
|