From 80b39811880f45f0be9439aa940050030196ff14 Mon Sep 17 00:00:00 2001 From: iammm0 Date: Tue, 10 Feb 2026 14:41:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/docker-compose.yml | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/api/docker-compose.yml b/api/docker-compose.yml index 6940666..2135dba 100644 --- a/api/docker-compose.yml +++ b/api/docker-compose.yml @@ -84,9 +84,7 @@ services: max-size: "10m" max-file: "3" - # Celery Worker(后台任务处理) - # 注意:与 api 共用镜像,但 Dockerfile 的 HEALTHCHECK 是探测 8000 端口的,worker 不提供 HTTP, - # 因此必须在此覆盖健康检查,否则容器会一直被判定为 unhealthy + # Celery Worker(后台任务处理,禁用健康检查避免与 api 共用镜像的 8000 端口检查冲突) celery-worker: build: context: . @@ -107,12 +105,6 @@ 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: