docker-compose/pihole/docker-compose.yml

22 lines
556 B
YAML
Raw Normal View History

2022-12-25 03:05:38 +02:00
version: '3.8'
services:
pihole:
image: pihole/pihole:latest
container_name: pihole
restart: unless-stopped
network_mode: host
2023-07-24 16:20:35 +03:00
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"
2022-12-25 03:05:38 +02:00
environment:
TZ: ${TZ}
2023-07-24 16:20:35 +03:00
WEB_PORT: ${WEB_PORT}
2022-12-25 03:05:38 +02:00
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