diff --git a/apps/pihole/config.json b/apps/pihole/config.json index 1441e402..7150e147 100644 --- a/apps/pihole/config.json +++ b/apps/pihole/config.json @@ -22,6 +22,12 @@ "min": 3, "required": true, "env_variable": "APP_PASSWORD" + }, + { + "type": "ip", + "label": "Network Interface (use 0.0.0.0 for all)", + "required": true, + "env_variable": "NW_INTERFACE" } ] } diff --git a/apps/pihole/docker-compose.yml b/apps/pihole/docker-compose.yml index e3d47d26..dbcb773a 100644 --- a/apps/pihole/docker-compose.yml +++ b/apps/pihole/docker-compose.yml @@ -21,8 +21,8 @@ services: - 127.0.0.1 # - 10.21.21.200 # Points to unbound ports: - - 53:53/tcp - - 53:53/udp + - ${NW_INTERFACE}:53:53/tcp + - ${NW_INTERFACE}:53:53/udp - ${APP_PORT}:80 volumes: - ${APP_DATA_DIR}/data/pihole:/etc/pihole