From a16b5a232e882ec941dd9c6d469a3f770849f8e2 Mon Sep 17 00:00:00 2001 From: alexz Date: Mon, 9 Mar 2026 18:19:14 +0000 Subject: [PATCH] fix: use variable BIND_IP in hostPort for SMB ports --- apps/nas-samba/config.json | 8 ++++++++ apps/nas-samba/docker-compose.json | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/apps/nas-samba/config.json b/apps/nas-samba/config.json index b2bd79b..18ea517 100644 --- a/apps/nas-samba/config.json +++ b/apps/nas-samba/config.json @@ -28,6 +28,14 @@ "required": true, "default": "/nas", "hint": "Host path to share via SMB" + }, + { + "type": "text", + "label": "Bind IP", + "env_variable": "BIND_IP", + "required": true, + "default": "192.168.0.15", + "hint": "IP address to bind SMB ports to" } ], "supported_architectures": ["arm64", "amd64"], diff --git a/apps/nas-samba/docker-compose.json b/apps/nas-samba/docker-compose.json index afdffad..70628fa 100644 --- a/apps/nas-samba/docker-compose.json +++ b/apps/nas-samba/docker-compose.json @@ -9,11 +9,11 @@ "hostname": "nas", "addPorts": [ { - "hostPort": "192.168.0.15:445", + "hostPort": "${BIND_IP}:445", "containerPort": 445 }, { - "hostPort": "192.168.0.15:139", + "hostPort": "${BIND_IP}:139", "containerPort": 139 } ],