chore: 更新Docker配置,优化路由

- 更新docker-compose.yml
- 优化conversations.py、plans.py、quota.py、user.py、websocket.py

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
iammm0
2026-02-10 14:23:40 +08:00
parent e39fd97e06
commit 498277aac3
6 changed files with 317 additions and 145 deletions

View File

@@ -85,6 +85,8 @@ services:
max-file: "3"
# Celery Worker后台任务处理
# 注意:与 api 共用镜像,但 Dockerfile 的 HEALTHCHECK 是探测 8000 端口的worker 不提供 HTTP
# 因此必须在此覆盖健康检查,否则容器会一直被判定为 unhealthy
celery-worker:
build:
context: .
@@ -105,6 +107,12 @@ services:
condition: service_healthy
api:
condition: service_healthy
healthcheck:
test: ["CMD", "celery", "-A", "tasks.celery_app", "inspect", "ping"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- life-echo-network
logging: