## 🏗️ 新增功能 - **shared/**: 完整的基础组件部署方案 - docker-compose.yml: 统一编排所有基础服务 - .env.example: 标准化环境变量配置 - prometheus/prometheus.yml: 监控配置 - bin/up.sh & down.sh: 一键部署脚本 - README.md: 完整的使用文档 ## 🛠️ 核心服务 - **数据库层**: PostgreSQL 16 + MySQL 8 (统一密码: 123456) - **缓存层**: Redis 7 (密码: 123456) - **代码管理**: GitLab CE + Gitea (双代码仓库) - **镜像仓库**: Harbor (Docker Registry) - **监控层**: Prometheus + Grafana + cAdvisor - **网关反代**: Traefik v3.1 ## 🔧 技术优化 - 所有端口统一使用 2xx80 系列,避免端口冲突 - 统一网络架构 (core network),支持多项目接入 - 完善的健康检查和服务依赖配置 - 支持 ARM64 架构 (MySQL 8 兼容性修复) ## 📚 文档更新 - SYSTEM-CONFIG.md: 系统配置文档完善 - harbor/README.md: Harbor 模块使用说明 - docs/: 完整的部署和运维文档 ## 🚀 部署说明 所有服务已成功启动并通过验证: - GitLab: http://localhost:28082 (root/SecurePass2024!) - Gitea: http://localhost:23000 - Harbor: http://localhost:28081 - Grafana: http://localhost:23001 (admin/123456) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
36 lines
911 B
Bash
36 lines
911 B
Bash
# 数据库配置
|
|
PG_USER=postgres
|
|
PG_PASSWORD=123456
|
|
PG_DB=postgres
|
|
|
|
MYSQL_ROOT_PASSWORD=123456
|
|
MYSQL_USER=mysql
|
|
MYSQL_PASSWORD=123456
|
|
MYSQL_DB=mysql
|
|
|
|
# Redis配置
|
|
REDIS_PASSWORD=123456
|
|
|
|
# Gitea配置
|
|
GITEA_DOMAIN=gitea.local.lan
|
|
GITEA_DB_NAME=gitea
|
|
|
|
# Harbor配置
|
|
HARBOR_DOMAIN=harbor.local.lan
|
|
HARBOR_DB=registry
|
|
HARBOR_CORE_SECRET=your-core-secret-change-in-production
|
|
HARBOR_JOBSERVICE_SECRET=your-jobservice-secret-change-in-production
|
|
HARBOR_REGISTRY_SECRET=your-registry-secret-change-in-production
|
|
HARBOR_REGISTRY_HTTP_SECRET=your-http-secret-change-in-production
|
|
|
|
# Grafana配置
|
|
GRAFANA_DOMAIN=grafana.local.lan
|
|
GRAFANA_USER=admin
|
|
GRAFANA_PASSWORD=123456
|
|
|
|
# 时区设置
|
|
TZ=Asia/Shanghai
|
|
|
|
# 网络域名配置
|
|
# 注意:需要在本地hosts文件中添加以下域名解析:
|
|
# 127.0.0.1 gitea.local.lan harbor.local.lan grafana.local.lan traefik.local.lan prometheus.local.lan cadvisor.local.lan |