version: "3.7" services: app_proxy: environment: APP_HOST: pi-hole_server_1 APP_PORT: 80 PROXY_AUTH_ADD: "false" server: image: pihole/pihole:2022.12@sha256:773ed874ca7244b04da6470eb1e596c5c8960afe14fda3162e29ab4d79c3d239 # 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 volumes: - ${APP_DATA_DIR}/data/pihole:/etc/pihole/ - ${APP_DATA_DIR}/data/dnsmasq:/etc/dnsmasq.d/ environment: - VIRTUAL_HOST=${APP_DOMAIN} - WEBPASSWORD=${APP_PASSWORD}