bd21b05fbc
- 删除 src/utils/prewarm_dashboard.py - 删除 scripts/prewarm_dashboard_cache.py、prewarm_dashboard_worker.py - docker-compose.yml 移除 polyweather_prewarm 服务 - runtime_coordinator.py 移除预热循环启动逻辑 - web/core.py 移除 prewarm status 上报 - web/routers/system.py 移除 /api/system/prewarm 端点 - web/services/system_api.py 移除 run_system_prewarm - city_runtime.py DEFAULT_PREWARM_CITIES 改名为 DEFAULT_STATUS_CITIES - 清理 env.example、测试、VPS .env 中的预热配置
37 lines
1.3 KiB
YAML
37 lines
1.3 KiB
YAML
x-polyweather-base: &polyweather-base
|
|
build: .
|
|
image: polyweather-app:latest
|
|
env_file:
|
|
- .env
|
|
|
|
services:
|
|
polyweather:
|
|
<<: *polyweather-base
|
|
container_name: polyweather_bot
|
|
restart: unless-stopped
|
|
volumes:
|
|
# Persist runtime data outside git workspace.
|
|
# Host path defaults to /var/lib/polyweather and can be overridden in .env.
|
|
- ${POLYWEATHER_RUNTIME_DATA_DIR:-/var/lib/polyweather}:/var/lib/polyweather
|
|
# Keep /app/data compatibility for existing cache/state defaults.
|
|
- ${POLYWEATHER_RUNTIME_DATA_DIR:-/var/lib/polyweather}:/app/data
|
|
- ./bot.log:/app/bot.log # 挂载日志文件
|
|
# UID/GID are mainly useful on Linux hosts to avoid root-owned output files.
|
|
# Windows / macOS can usually keep the fallback values.
|
|
user: "${UID:-1000}:${GID:-1000}"
|
|
|
|
polyweather_web:
|
|
<<: *polyweather-base
|
|
container_name: polyweather_web
|
|
restart: unless-stopped
|
|
command: python web/app.py
|
|
volumes:
|
|
# Web service shares the same runtime data directory as bot/state tasks.
|
|
- ${POLYWEATHER_RUNTIME_DATA_DIR:-/var/lib/polyweather}:/var/lib/polyweather
|
|
- ${POLYWEATHER_RUNTIME_DATA_DIR:-/var/lib/polyweather}:/app/data
|
|
ports:
|
|
- "8000:8000"
|
|
# UID/GID are mainly useful on Linux hosts to avoid root-owned output files.
|
|
user: "${UID:-1000}:${GID:-1000}"
|
|
|