deploy: 修复容器内 18091/18092 监听;支持 --no-cache 重建

This commit is contained in:
ci
2026-10-20 22:54:25 +08:00
parent 93edad28e5
commit 98284c59e8
2 changed files with 9 additions and 4 deletions

View File

@ -71,7 +71,7 @@ server {
# 内部:前端构建期取 SSG 数据(只绑宿主回环,前端镜像 build 时用 host 网络访问)
server {
listen 127.0.0.1:18091;
listen 18091; # 容器内必须监听 0.0.0.0,否则 docker 端口发布到容器网卡时连不上;宿主机只发布到 127.0.0.1
access_log off;
location / {
proxy_pass http://$ssg_up;
@ -81,7 +81,7 @@ server {
# 内部:管理后台(只绑宿主回环;远程访问用 SSH 隧道到 18092)
server {
listen 127.0.0.1:18092;
listen 18092; # 同上:容器内回环监听会导致 docker 端口发布不可达(管理后台/爬虫入库走此口)
location / {
proxy_pass http://$admin_up;
proxy_set_header Host $host;