Files
bttoxin-pipeline/docker/scripts/switch-to-traefik.sh
zly fe353fc0bc chore: 初始版本提交 - 简化架构 + 轮询改造
- 移除 Motia Streams 实时通信,改用 3 秒轮询
- 简化前端代码,移除冗余组件
- 简化后端架构,准备 FastAPI 重构
- 更新 pixi.toml 环境配置
- 保留 bttoxin_digger_v5_repro 作为参考文档

Co-Authored-By: Claude <noreply@anthropic.com>
2026-01-13 16:50:09 +08:00

27 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
# Switch to Traefik mode
echo "Stopping test container..."
docker compose -f /home/zly/project/bttoxin-pipeline/docker/compose/docker-compose.test.yml down
echo "Starting with Traefik..."
docker run -d \
--name bttoxin-pipeline \
--network traefik-network \
-v /home/zly/project/bttoxin-pipeline/jobs:/app/jobs \
-e JOBS_DIR=/app/jobs \
--label traefik.enable=true \
--label traefik.http.routers.bttoxin.rule="Host(\`bttiaw.hzau.edu.cn\`)" \
--label traefik.http.routers.bttoxin.entrypoints=web \
--label traefik.http.routers.bttoxin.middlewares=redirect-to-https \
--label traefik.http.routers.bttoxin-secure.rule="Host(\`bttiaw.hzau.edu.cn\`)" \
--label traefik.http.routers.bttoxin-secure.entrypoints=websecure \
--label traefik.http.routers.bttoxin-secure.tls=true \
--label traefik.http.services.bttoxin.loadbalancer.server.port=8000 \
--label traefik.http.middlewares.redirect-to-https.redirectscheme.scheme=https \
--label traefik.http.middlewares.redirect-to-https.redirectscheme.permanent=true \
--restart unless-stopped \
bttoxin-pipeline:latest
echo "Done! Access via: https://bttiaw.hzau.edu.cn"