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:
14
hzhub-admin/Dockerfile
Normal file
14
hzhub-admin/Dockerfile
Normal file
@@ -0,0 +1,14 @@
|
||||
# 使用 Nginx 托管已构建的前端
|
||||
FROM nginx:alpine
|
||||
|
||||
# 复制构建产物到 Nginx 目录
|
||||
COPY apps/web-antd/dist /usr/share/nginx/html
|
||||
|
||||
# 复制 Nginx 配置
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
||||
|
||||
# 暴露端口
|
||||
EXPOSE 5666
|
||||
|
||||
# 启动 Nginx
|
||||
CMD ["nginx", "-g", "daemon off;"]
|
||||
Reference in New Issue
Block a user