diff --git a/backend/app/service/app_utils.go b/backend/app/service/app_utils.go
index 4cabc8961f4f..d51be064e34b 100644
--- a/backend/app/service/app_utils.go
+++ b/backend/app/service/app_utils.go
@@ -1136,7 +1136,7 @@ func addDockerComposeCommonParam(composeMap map[string]interface{}, serviceName
if portExist {
allowHost := "127.0.0.1"
if req.Advanced && req.AllowPort {
- allowHost = "0.0.0.0"
+ allowHost = ""
}
params[constant.HostIP] = allowHost
}
@@ -1148,7 +1148,7 @@ func getAppCommonConfig(envs map[string]interface{}) request.AppContainerConfig
config := request.AppContainerConfig{}
if hostIp, ok := envs[constant.HostIP]; ok {
- config.AllowPort = hostIp.(string) == "0.0.0.0"
+ config.AllowPort = hostIp.(string) != "127.0.0.1"
} else {
config.AllowPort = true
}
diff --git a/frontend/src/views/app-store/detail/install/index.vue b/frontend/src/views/app-store/detail/install/index.vue
index 38cd6a7941e1..c6e88f7fd990 100644
--- a/frontend/src/views/app-store/detail/install/index.vue
+++ b/frontend/src/views/app-store/detail/install/index.vue
@@ -65,6 +65,10 @@
:placeholder="$t('app.containerNameHelper')"
>
+
+
+ {{ $t('app.allowPortHelper') }}
+
-
-
- {{ $t('app.allowPortHelper') }}
-
+
{{ $t('app.editComposeHelper') }}
diff --git a/frontend/src/views/app-store/installed/detail/index.vue b/frontend/src/views/app-store/installed/detail/index.vue
index d90c2cb0f148..48fa7a378231 100644
--- a/frontend/src/views/app-store/installed/detail/index.vue
+++ b/frontend/src/views/app-store/installed/detail/index.vue
@@ -52,6 +52,10 @@
:placeholder="$t('app.containerNameHelper')"
>
+
+
+ {{ $t('app.allowPortHelper') }}
+
{{ $t('container.limitHelper') }}
-
-
- {{ $t('app.allowPortHelper') }}
-
+
{{ $t('app.editComposeHelper') }}