## 🏗️ 新增功能 - **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 <[email protected]>
49 lines
1.4 KiB
YAML
49 lines
1.4 KiB
YAML
# values-postgresql.yaml (Helm chart: bitnami/postgresql)
|
|
# 命名空间: shared-base
|
|
|
|
auth:
|
|
postgresPassword: "<CHANGE_ME_postgres_password>"
|
|
username: "postgres"
|
|
password: "<CHANGE_ME_postgres_password>"
|
|
database: "postgres"
|
|
|
|
primary:
|
|
persistence:
|
|
enabled: true
|
|
size: 50Gi
|
|
storageClass: "" # 使用默认 StorageClass
|
|
|
|
resources:
|
|
requests:
|
|
cpu: 200m
|
|
memory: 512Mi
|
|
limits:
|
|
cpu: "1"
|
|
memory: 1Gi
|
|
|
|
# 为业务应用创建独立数据库和用户
|
|
initdbScripts:
|
|
create_databases.sql: |
|
|
-- 创建业务数据库
|
|
CREATE DATABASE gitea;
|
|
CREATE DATABASE bookstore_db;
|
|
CREATE DATABASE stock_db;
|
|
CREATE DATABASE words_db;
|
|
CREATE DATABASE gmc_new_db;
|
|
|
|
-- 创建应用用户
|
|
CREATE USER gitea_app WITH PASSWORD '<CHANGE_ME_gitea_password>';
|
|
CREATE USER bookstore_app WITH PASSWORD '<CHANGE_ME_bookstore_password>';
|
|
CREATE USER stock_app WITH PASSWORD '<CHANGE_ME_stock_password>';
|
|
CREATE USER words_app WITH PASSWORD '<CHANGE_ME_words_password>';
|
|
CREATE USER gmc_new_app WITH PASSWORD '<CHANGE_ME_gmc_password>';
|
|
|
|
-- 授权
|
|
GRANT ALL PRIVILEGES ON DATABASE gitea TO gitea_app;
|
|
GRANT ALL PRIVILEGES ON DATABASE bookstore_db TO bookstore_app;
|
|
GRANT ALL PRIVILEGES ON DATABASE stock_db TO stock_app;
|
|
GRANT ALL PRIVILEGES ON DATABASE words_db TO words_app;
|
|
GRANT ALL PRIVILEGES ON DATABASE gmc_new_db TO gmc_new_app;
|
|
|
|
metrics:
|
|
enabled: true |