Files
labweb/web/group-site/docker-compose.yml
2025-11-23 17:45:04 +08:00

40 lines
1.3 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.
# Vue 科研课题组展示网站
# 部署路径https://amiap.hzau.edu.cn/group/
services:
group-site:
image: nginx:alpine
container_name: group-site
volumes:
# Vue 构建产物
- ./dist:/usr/share/nginx/html:ro
# Nginx 配置
- ./nginx.conf:/etc/nginx/conf.d/default.conf:ro
networks:
- frontend
labels:
- "traefik.enable=true"
# ======================================
# 课题组网站路由 - /group/ 子路径
# ======================================
- "traefik.http.routers.group-site.rule=Host(`amiap.hzau.edu.cn`) && PathPrefix(`/group`)"
- "traefik.http.routers.group-site.priority=80" # 高于 MinIO S3 (50)
- "traefik.http.routers.group-site.entrypoints=websecure"
- "traefik.http.routers.group-site.tls.certresolver=myresolver"
# StripPrefix 中间件 - 去除 /group 前缀
- "traefik.http.middlewares.group-stripprefix.stripprefix.prefixes=/group"
# 压缩中间件
- "traefik.http.middlewares.group-compress.compress=true"
# 应用中间件
- "traefik.http.routers.group-site.middlewares=group-stripprefix,group-compress"
- "traefik.http.services.group-site-svc.loadbalancer.server.port=80"
networks:
frontend:
external: true