umbrel-apps/pi-hole/docker-compose.yml
Antonin CLAUZIER ff10411528
Add DHCP support to Pi-hole (#146)
Co-authored-by: Nathan Fretz <nmfretz@gmail.com>
2023-03-10 15:11:40 -08:00

27 lines
719 B
YAML

version: "3.7"
services:
app_proxy:
environment:
APP_HOST: pi-hole_server_1
APP_PORT: 80
PROXY_AUTH_ADD: "false"
server:
image: pihole/pihole:2023.02.2@sha256:9abbf1c218f32a4084e614150a44714f046f73c40a9d2889a0e6edf01ff0a387
# 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
ports:
- 53:53
- 53:53/udp
- 67:67/udp
volumes:
- ${APP_DATA_DIR}/data/pihole:/etc/pihole/
- ${APP_DATA_DIR}/data/dnsmasq:/etc/dnsmasq.d/
environment:
- VIRTUAL_HOST=${APP_DOMAIN}
- WEBPASSWORD=${APP_PASSWORD}
cap_add:
- NET_ADMIN