Files
yunrui_asset/.env.example
T
zhang1106 584c8cf590 feat: 添加 Docker 化部署配置与 CI/CD 自动化
- 新增后端 Dockerfile(Node.js 20 Alpine 基础镜像)

- 新增前端 Dockerfile(多阶段构建:Vite build + Nginx)

- 新增 Nginx 配置(serve 前端静态文件 + 反代 /api)

- 新增 docker-compose.dev.yml 和 docker-compose.prod.yml

- 新增 GitHub Actions 工作流(自动构建推送阿里云镜像)

- 新增 .dockerignore 排除不需要的文件

- 新增部署方案文档
2026-06-15 16:14:08 +08:00

21 lines
755 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# ============================================
# 生产环境 docker-compose 环境变量示例
# 复制此文件为 .env,填入实际值
# ============================================
# 后端镜像地址(阿里云容器镜像服务)
BACKEND_IMAGE=registry.cn-hangzhou.aliyuncs.com/your-namespace/idc-backend:latest
# 前端镜像地址(阿里云容器镜像服务)
FRONTEND_IMAGE=registry.cn-hangzhou.aliyuncs.com/your-namespace/idc-frontend:latest
# 指定特定版本(可选,默认 latest)
# BACKEND_VERSION=v1.0.0
# FRONTEND_VERSION=v1.0.0
# ---- MySQL 容器配置(如启用本地 MySQL ----
# MYSQL_ROOT_PASSWORD=your_root_password
# MYSQL_DATABASE=idc_management
# MYSQL_USER=idc_user
# MYSQL_PASSWORD=your_mysql_password