From ebd90e892e4c900d8e6e2eb28971c6de4d55dd25 Mon Sep 17 00:00:00 2001 From: dextreem Date: Fri, 23 Sep 2022 10:46:50 +0200 Subject: [PATCH] Added form field for network interface to pihole --- apps/pihole/config.json | 6 ++++++ apps/pihole/docker-compose.yml | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) 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