Files
simon b6df028839 v1.0.0 高考志愿门户完整修复
变更摘要:
- [fix] 清理根目录 index.html 遗留代码(questionnaire-error + retryLoad 移除)
- [fix] 副标题同步更新为自估591分 + 候选志愿546条数据校准
- [fix] 页脚注入版本号 v1.0.0
- [fix] 部署版 index.html: 取消家长标签,统一 filler-tianheng
- [fix] Dashboard 文案修正(4份→2份线上问卷)
- [fix] 清理冗余部署脚本(v1-v4归档至 archived_scripts/)
- [fix] 等效位次工具纳入 deploy 目录
- [chore] .gitignore 初始化
- [init] Git 仓库初始化
2026-06-24 13:11:34 +08:00

46 lines
1.7 KiB
YAML
Raw Permalink 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 编排文件
# 用于群晖 NAS (Container Manager) 一键部署
#
# 架构:
# nginx (80) → 静态报告 + 导航首页
# backend (5000) → 问卷 API + SQLite 存储
#
# 访问: http://<NAS_IP>:8080
# ============================================================
version: '3.8'
services:
# ---------- Nginx: 静态文件服务器 + API 反向代理 ----------
nginx:
image: nginx:alpine # 使用 Alpine 精简镜像(~5MB
container_name: gaokao-nginx
ports:
- "8080:80" # 宿主机 8080 → 容器 80
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro # Nginx 配置(只读挂载)
- ./nginx/html:/usr/share/nginx/html:ro # 静态页面目录(只读)
depends_on:
- backend # 等 backend 启动后再启动
restart: unless-stopped # 异常退出自动重启
networks:
- gaokao-net
# ---------- Flask: 问卷后端 API ----------
backend:
build: ./backend # 用 backend/ 目录下的 Dockerfile 构建
container_name: gaokao-backend
volumes:
- ./backend/data:/app/data # SQLite 数据库持久化到宿主机
environment:
- FLASK_ENV=production # 生产模式
- TZ=Asia/Shanghai # 时区
restart: unless-stopped
networks:
- gaokao-net
# Docker 内部网络,nginx 和 backend 通过容器名互相访问
networks:
gaokao-net:
driver: bridge