Files
XH-XunKe/docker-compose.yml
T
xhgitandClaude Code ed55053b10 直播观看与录像链路真实验证通过,前端 UI 全面重做,分角色控制台
- 修复: LiveKit 回环候选生效(宿主机浏览器可直连推流)
- 修复: 回放预签名 URL 403(公开端点直接签名,SignedHeaders=host)
- 修复: 录像探针补 fileSize/durationSeconds
- 修复: 家长录像列表被权限过滤误伤为 0 条;教师/家长列表按角色精确隔离
- 修复: 巡课静音失效(LiveKit attach 强制 unmute,静音时不挂载音轨)
- 修复: 教室页自动请求摄像头/麦克风权限,分辨率失败自动降级
- 新增: 浏览器端到端验证脚本 scripts/e2e-browser.mjs(9 项断言全过:
  教师推流/家长观看含音频电平实测/巡课默认静音/Egress 录像双轨齐全/
  DPlayer 回放/录像权限隔离)
- 新增: /parent/today 家长今日课程表、网站 Logo 上传与公开读取
- UI 重做: 虎牙风直播播放器 + DPlayer 回放播放器(视觉统一)
- 分角色控制台: 管理端 /admin(16 模块)、教师端 /teacher、家长端 /parent
- 直播/录像列表返回班级、课程、教师名称与在线人数
- 18088 本地预览改为 Vite 热更新,README/实现状态文档同步更新

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Code <noreply@anthropic.com>
2026-11-22 15:08:36 +08:00

116 lines
2.4 KiB
YAML

name: xuenke
x-logging: &logging
driver: json-file
options:
max-size: "10m"
max-file: "3"
services:
postgres:
image: postgres:16-alpine
environment:
POSTGRES_USER: ${DB_USER:-xuenke}
POSTGRES_PASSWORD: ${DB_PASSWORD:-xuenke}
POSTGRES_DB: xuenke
volumes:
- pg-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U ${DB_USER:-xuenke}"]
interval: 5s
timeout: 3s
retries: 20
logging: *logging
redis:
image: redis:7-alpine
command: ["redis-server", "--appendonly", "yes"]
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 5s
timeout: 3s
retries: 20
logging: *logging
minio:
image: alpine/minio:RELEASE.2025-10-15T17-29-55Z
command: server /data --console-address ":9001"
user: "0:0"
environment:
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY:-xuenke}
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY:-xuenke-minio-secret}
ports:
- "9000:9000"
- "9001:9001"
volumes:
- minio-data:/data
logging: *logging
livekit:
image: livekit/livekit-server:v1.13.11
command: --config /etc/livekit.yaml
volumes:
- ./deploy/livekit.yaml:/etc/livekit.yaml:ro
ports:
- "7880:7880"
- "7881:7881"
- "50000-50100:50000-50100/udp"
depends_on:
redis:
condition: service_healthy
logging: *logging
egress:
image: livekit/egress:v1.13.0
environment:
EGRESS_CONFIG_FILE: /etc/egress.yaml
volumes:
- ./deploy/egress.yaml:/etc/egress.yaml:ro
cap_add:
- SYS_ADMIN
depends_on:
- livekit
- redis
- minio
logging: *logging
backend:
build: ./backend
env_file: .env
environment:
DB_URL: jdbc:postgresql://postgres:5432/xuenke
REDIS_HOST: redis
MINIO_ENDPOINT: http://minio:9000
MINIO_PUBLIC_ENDPOINT: http://localhost:9000
LIVEKIT_URL: ws://livekit:7880
depends_on:
postgres:
condition: service_healthy
redis:
condition: service_healthy
ports:
- "8080:8080"
logging: *logging
web:
build: ./frontend
depends_on:
- backend
ports:
- "18088:80"
logging: *logging
mailhog:
image: mailhog/mailhog:v1.0.1
ports:
- "1025:1025"
- "8025:8025"
logging: *logging
volumes:
pg-data:
redis-data:
minio-data: