services: pihole: container_name: pihole image: pihole/pihole:latest restart: always ports: - "53:53/tcp" - "53:53/udp" - "8053:80/tcp" env_file: - stack.env # Volumes store your data between container upgrades volumes: - ${PIHOLE_CONFIG_DIR}:/etc/pihole - ${PIHOLE_DNS_FILE}:/etc/dnsmasq.d