Commit 96ad6b27 authored by hjm's avatar hjm
Browse files

feat: 添加 Web 本地部署配置

主要更改:
1. 创建 nginx-site.local.conf - 本地部署版本的 nginx 配置
   - 使用 host.docker.internal:8080 作为后端 API 地址
   - 替换原来的 Kubernetes 服务地址

2. 创建 Dockerfile.local - 本地部署版本的 Dockerfile
   - 使用 nginx-site.local.conf 配置
   - 保持与 Dockerfile.prod 相同的其他配置

3. 修改 .gitlab-ci.yml
   - package:web 使用 Dockerfile.local 构建镜像
   - deploy:web 修正端口映射 5173:80(nginx 监听 80)
   - 添加 --add-host 使容器能访问宿主机
   - 健康检查使用容器内的 /health 端点

这修复了 Web 部署时 nginx 无法解析 Kubernetes 域名的问题。

🤖 Generated with [Claude Code](https://claude.com/claude-code

)

Co-Authored-By: default avatarClaude <noreply@anthropic.com>
parent bd18e69e
Loading
Loading
Loading
Loading