方案1: docker-compose 双容器(原有,不变) 方案2: 二进制部署(go:embed 前端嵌入) - 修复 SPA fallback(c.FileFromFS 301 → c.Data 直接返回) - 二进制 22MB,内存 21.5MB - 支持全部 CLI 参数(--db-host --redis-host --port 等) 方案3: K8s 部署(hostNetwork + 外部 MySQL/Redis) - devops 声明空间 - embed 单容器 Deployment + NodePort Service - 健康检查改为 /version(/health 尚未实现) - hostNetwork 解决 K8s pod 网络到外部 MySQL 的连通性 新增: Dockerfile.embed, docker-compose.embed.yml, deploy/binary/
22 lines
1.1 KiB
XML
22 lines
1.1 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 64 64" width="64" height="64">
|
|
<defs>
|
|
<linearGradient id="bg" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
<stop offset="0%" style="stop-color:#1e6feb"/>
|
|
<stop offset="100%" style="stop-color:#0d8abc"/>
|
|
</linearGradient>
|
|
<linearGradient id="glow" x1="0%" y1="0%" x2="100%" y2="100%">
|
|
<stop offset="0%" style="stop-color:#38bdf8"/>
|
|
<stop offset="100%" style="stop-color:#22d3ee"/>
|
|
</linearGradient>
|
|
</defs>
|
|
<!-- Rounded square background -->
|
|
<rect width="64" height="64" rx="14" fill="url(#bg)"/>
|
|
<!-- Stylized "A" — also resembles a mountain peak / monitoring graph -->
|
|
<path d="M32 14 L48 50 L40 50 L36.5 41 L27.5 41 L24 50 L16 50 Z M30 34 L34 34 L32 27 Z"
|
|
fill="none" stroke="url(#glow)" stroke-width="3.5" stroke-linejoin="round" stroke-linecap="round"/>
|
|
<!-- Circuit nodes representing AI/automation -->
|
|
<circle cx="32" cy="14" r="2.5" fill="#22d3ee"/>
|
|
<circle cx="16" cy="50" r="2.5" fill="#22d3ee"/>
|
|
<circle cx="48" cy="50" r="2.5" fill="#22d3ee"/>
|
|
</svg>
|