umbrel-apps/pi-hole/docker-compose.yml
smolgrrr 35001e636e
Update Pi-hole to v2024.02.0 (#977)
Co-authored-by: nmfretz <nmfretz@gmail.com>
2024-02-23 10:13:21 -08:00

22 lines
672 B
YAML

version: "3.7"
services:
server:
image: pihole/pihole:2024.02.0@sha256:8077053835c2d2449041adad0c272d6e5fea3df91c5dfc3dae2bd950999c3118
# Pi-hole doesn't currently support running as non-root
# https://github.com/pi-hole/docker-pi-hole/issues/685
# user: "1000:1000"
restart: on-failure
network_mode: host
volumes:
- ${APP_DATA_DIR}/data/pihole:/etc/pihole/
- ${APP_DATA_DIR}/data/dnsmasq:/etc/dnsmasq.d/
environment:
- VIRTUAL_HOST=${APP_DOMAIN}
- WEBPASSWORD=${APP_PASSWORD}
- WEB_PORT=8082
# Listen on all interfaces, permit all origins
- DNSMASQ_LISTENING=all
cap_add:
- NET_ADMIN