homelab/pihole/docker-compose.yml
2025-11-22 22:20:32 -06:00

26 lines
568 B
YAML

version: "3"
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
# Volumes store your data between container upgrades
volumes:
- pihole:/etc/pihole/
- dnsmasq:/etc/dnsmasq.d/
ports:
- 80
environment:
TZ: "America/Chicago"
WEBPASSWORD: password
# Recommended but not required (DHCP needs NET_ADMIN)
# https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
cap_add:
- NET_ADMIN
labels:
kompose.service.expose: pihole.wayl.one
volumes:
pihole:
dnsmasq: