version: "3.7" services: server: image: pihole/pihole:2021.09@sha256:42837bd859b91b5584e9df185a59b16fda2f04109d68f050889a58274ff27004 # 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 - ${APP_PI_HOLE_PORT}:80 volumes: - ${APP_DATA_DIR}/data/pihole:/etc/pihole/ - ${APP_DATA_DIR}/data/dnsmasq:/etc/dnsmasq.d/ environment: - VIRTUAL_HOST=${APP_DOMAIN} - WEBPASSWORD=moneyprintergobrrr networks: default: ipv4_address: $APP_PI_HOLE_IP