steveternet/nuc/pihole/docker-compose.yml

35 lines
809 B
YAML
Raw Normal View History

2023-12-24 18:54:49 +00:00
version: "3"
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
services:
pihole:
container_name: pihole
image: pihole/pihole:latest
ports:
- 53:53/udp
2023-12-24 18:54:49 +00:00
environment:
- TZ=${TIMEZONE}
2024-07-27 03:47:24 +00:00
- CORS_HOSTS=${CORS_HOSTS}
2023-12-24 18:54:49 +00:00
- WEBPASSWORD=${WEB_UI_PASSWORD}
network_mode: host
2023-12-24 18:54:49 +00:00
# Volumes store your data between container upgrades
volumes:
- pihole-config_data:/etc/pihole
- pihole-dnsmasq_data:/etc/dnsmasq.d
2024-07-27 03:47:24 +00:00
- /home/steve/nuc/pihole/pihole-lighttpd.conf:/etc/lighttpd/lighttpd.conf
2023-12-24 18:54:49 +00:00
cap_add:
- NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
restart: unless-stopped
volumes:
pihole-config_data:
external: true
pihole-dnsmasq_data:
external: true