Files
ljwx-health/.env.local-registry
rootandClaude Sonnet 4.5 31ac7f2e89 fix: 使用宿主机 IP 地址访问本地 Registry
## 修复问题
- K3s pod 内无法访问 localhost:5000
- 改用宿主机 IP: 173.212.254.252:5000

## 配置更改
- 更新 .env.local-registry 使用宿主机 IP
- 更新 workflow Registry 登录地址
- 更新 K8s deployment 镜像地址
- 配置 Docker daemon 允许不安全的 Registry
- 配置 K3s registries.yaml 支持 HTTP Registry

## 测试
- ✅ Runner pod 可以访问 173.212.254.252:5000
- ✅ Docker 登录成功
- ✅ K3s 配置完成

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

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2025-12-16 07:55:36 +01:00

22 lines
558 B
Bash
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 本地 Docker Registry 配置(用于 CI/CD)
# 此文件配置使用本地 Registry 进行镜像构建和部署
# Registry 配置(使用宿主机 IP)
REGISTRY=173.212.254.252:5000
HARBOR_HOST=173.212.254.252:5000
HARBOR_PROJECT=ljwx-health
# 版本配置
LJWX_VERSION=2.0.4
# 镜像版本(与 LJWX_VERSION 保持一致)
LJWX_MYSQL_VERSION=2.0.4
LJWX_REDIS_VERSION=2.0.4
LJWX_BOOT_VERSION=2.0.4
LJWX_BIGSCREEN_VERSION=2.0.4
LJWX_ADMIN_VERSION=2.0.4
# Registry 凭据(用于本地开发)
REGISTRY_USERNAME=admin
REGISTRY_PASSWORD=admin123