feat: Docker化部署完成 - 前端管理后台和AI服务

- 添加 hzhub-admin Dockerfile (Nginx)
- 添加 hzhub-admin nginx.conf (API代理、SSE支持、Gzip)
- 添加 hzhub-ai Dockerfile (Spring Boot)
- 添加 hzhub-gateway Dockerfile
- 更新 docker-compose.yml 添加前端和AI服务
- 更新 README.md 完善部署文档
- 配置 application-dev.yml 数据库连接

所有服务现在可通过 docker-compose up -d 一键启动:
- hzhub-admin:5666 (管理后台)
- hzhub-ai:6039 (AI服务)
- mysql:3306, redis:6379, weaviate:28080, n8n:5678
This commit is contained in:
2026-03-27 06:04:58 +00:00
parent 3584e491cc
commit bc96a584fe
9 changed files with 280 additions and 100 deletions

View File

@@ -58,9 +58,9 @@ spring:
driverClassName: com.mysql.cj.jdbc.Driver
# jdbc 所有参数配置参考 https://lionli.blog.csdn.net/article/details/122018562
# rewriteBatchedStatements=true 批处理优化 大幅提升批量插入更新删除性能(对数据库有性能损耗 使用批量操作应考虑性能问题)
url: jdbc:mysql://127.0.0.1:3306/ruoyi-ai?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
url: jdbc:mysql://127.0.0.1:3306/ruoyi_ai?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
username: root
password: root
password: hzhub123
# agent:
# url: jdbc:mysql://127.0.0.1:3306/test?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=true&serverTimezone=GMT%2B8&autoReconnect=true&rewriteBatchedStatements=true&allowPublicKeyRetrieval=true&nullCatalogMeansCurrent=true
# # url: jdbc:mysql://localhost:3306/agent_db