From c7eb87b24bf638251d444cd5b1e129e950bf5590 Mon Sep 17 00:00:00 2001 From: Simon Date: Sun, 14 Jun 2026 21:55:57 +0800 Subject: [PATCH] =?UTF-8?q?fix(upload):=20P1-1=20=E6=94=B9=20volume=20moun?= =?UTF-8?q?t=20=E6=8C=81=E4=B9=85=E5=8C=96=E4=B8=8A=E4=BC=A0=E6=96=87?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker-compose.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index fafdfcb..f8b3ad1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -100,6 +100,10 @@ services: # 服务配置 - BACKEND_HOST=0.0.0.0 - BACKEND_PORT=8000 + # 上传文件目录(持久化) + - UPLOAD_DIR=/app/uploads + volumes: + - backend-uploads:/app/uploads depends_on: postgres: condition: service_healthy @@ -115,11 +119,11 @@ services: networks: - it-desk-internal healthcheck: - test: ["CMD-SHELL", "curl -f http://localhost:8000/health || exit 1"] - interval: 15s - timeout: 5s + test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8000/health').read()"] + interval: 30s + timeout: 10s retries: 3 - start_period: 30s + start_period: 40s logging: driver: "json-file" options: @@ -173,3 +177,5 @@ volumes: name: wecom_it_postgres_data redis_data: name: wecom_it_redis_data + backend-uploads: + name: wecom_it_backend_uploads