deploy: 修复容器内 18091/18092 监听;支持 --no-cache 重建
This commit is contained in:
@ -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;
|
||||
|
||||
Reference in New Issue
Block a user