services: pihole: container_name: pihole image: pihole/pihole:latest network_mode: host environment: TZ: ${TZ} FTLCONF_webserver_api_password: ${PIHOLE_WEBPASSWORD} FTLCONF_LOCAL_IPV4: ${PIHOLE_LOCAL_IP} WEB_PORT: 8080 FTLCONF_webserver_port: 8080 INTERFACE: eth0 volumes: - CHANGE_TO_COMPOSE_DATA_PATH/pihole/etc-pihole:/etc/pihole - CHANGE_TO_COMPOSE_DATA_PATH/pihole/etc-dnsmasq.d:/etc/dnsmasq.d cap_add: - NET_ADMIN restart: unless-stopped