docker-compose/pihole/docker-compose.yml

22 lines
556 B
YAML

version: '3.8'
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
restart: unless-stopped
network_mode: host
ports:
- "53:53/tcp"
- "53:53/udp"
- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
- "8088:8088/tcp"
environment:
TZ: ${TZ}
WEB_PORT: ${WEB_PORT}
WEBPASSWORD: ${WEBPASSWORD}
volumes:
- ${BASE_DATA_DIR}/pihole/etc-pihole:/etc/pihole
- ${BASE_DATA_DIR}/pihole/etc-dnsmasq.d:/etc/dnsmasq.d
cap_add:
- NET_ADMIN