From f960a6bd78872a9b5577d0c90086dcaad69ba5a0 Mon Sep 17 00:00:00 2001 From: 0xJacky Date: Sun, 19 Apr 2026 11:42:53 +0800 Subject: [PATCH] docs: clarify docker access ports --- README.md | 2 ++ docs/guide/getting-started.md | 4 +++- docs/zh_CN/guide/getting-started.md | 4 +++- docs/zh_TW/guide/getting-started.md | 4 +++- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b4d0c1bb..0d3dd0f9 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,7 @@ docker run -dit \ ``` 3. When your docker container is running, Log in to nginx-ui panel with `http://:8080/install`. + If you change the port mapping, access Nginx UI through the host port mapped to container port `80` instead.
@@ -292,6 +293,7 @@ docker compose up -d ``` 4. When your docker container is running, Log in to nginx-ui panel with `http://:8080/install`. + If you change the port mapping, access Nginx UI through the host port mapped to container port `80` instead.
diff --git a/docs/guide/getting-started.md b/docs/guide/getting-started.md index 206fafd1..fd56ee11 100644 --- a/docs/guide/getting-started.md +++ b/docs/guide/getting-started.md @@ -113,7 +113,9 @@ you can easily make the switch. ::: tip -Nginx UI is by default proxied to port `8080` of the container. +The official Docker image listens on container ports `80` and `443`. +Requests to container port `80` are reverse proxied to the Nginx UI backend at `127.0.0.1:9000`. +Access Nginx UI through the host port that you publish to container port `80`. When using this container for the first time, ensure that the volume mapped to `/etc/nginx` is empty. If you want to host static files, you can map directories to container. diff --git a/docs/zh_CN/guide/getting-started.md b/docs/zh_CN/guide/getting-started.md index 7f96b788..d1904291 100644 --- a/docs/zh_CN/guide/getting-started.md +++ b/docs/zh_CN/guide/getting-started.md @@ -107,7 +107,9 @@ brew untap 0xjacky/tools ::: tip 提示 -默认情况下,Nginx UI 会被反向代理到容器的 `8080` 端口。 +官方 Docker 镜像监听容器的 `80` 和 `443` 端口。 +对容器 `80` 端口的请求会被反向代理到 `127.0.0.1:9000` 上的 Nginx UI 后端。 +请通过映射到容器 `80` 端口的宿主机端口访问 Nginx UI。 首次使用时,映射到 `/etc/nginx` 的目录必须为空文件夹。 如果你想要托管静态文件,可以直接将文件夹映射入容器中。 diff --git a/docs/zh_TW/guide/getting-started.md b/docs/zh_TW/guide/getting-started.md index 3dd9533c..39304f00 100644 --- a/docs/zh_TW/guide/getting-started.md +++ b/docs/zh_TW/guide/getting-started.md @@ -107,7 +107,9 @@ brew untap 0xjacky/tools ::: tip 提示 -預設情況下,Nginx UI 會被反向代理到容器的 `8080` 連接埠。 +官方 Docker 映像檔會監聽容器的 `80` 和 `443` 連接埠。 +對容器 `80` 連接埠的請求會被反向代理到 `127.0.0.1:9000` 上的 Nginx UI 後端。 +請透過對映到容器 `80` 連接埠的主機連接埠存取 Nginx UI。 首次使用時,對映到 `/etc/nginx` 的目錄必須為空資料夾。 如果你想要託管靜態檔案,可以直接將資料夾對映入容器中。