template
This commit is contained in:
39
web/group-site/docker-compose.yml
Normal file
39
web/group-site/docker-compose.yml
Normal file
@@ -0,0 +1,39 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user