From b4eaff74fe2f2871c211e1dc6107b8fa35c8a55d Mon Sep 17 00:00:00 2001 From: FamousMai <906631095@qq.com> Date: Sun, 10 Aug 2025 17:12:08 +0800 Subject: [PATCH] =?UTF-8?q?ci:=20docker=20compose=20=E8=A1=A5=E4=B8=8Abeat?= =?UTF-8?q?=E6=9C=8D=E5=8A=A1=EF=BC=8C=E5=A4=84=E7=90=86=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/docker-compose.dify-plus.yaml | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/docker/docker-compose.dify-plus.yaml b/docker/docker-compose.dify-plus.yaml index 563f92246..293b04daa 100644 --- a/docker/docker-compose.dify-plus.yaml +++ b/docker/docker-compose.dify-plus.yaml @@ -508,6 +508,31 @@ services: - ssrf_proxy_network - default + # beat service + # The Celery worker for schedule tasks. + beat: + image: ccr.ccs.tencentyun.com/yfgaia/dify-plus-api:1.2.0 + restart: always + environment: + # Use the shared environment variables. + <<: *shared-api-worker-env + # Startup mode, 'worker' starts the Celery worker for processing the queue. + MODE: beat + SENTRY_DSN: ${API_SENTRY_DSN:-} + SENTRY_TRACES_SAMPLE_RATE: ${API_SENTRY_TRACES_SAMPLE_RATE:-1.0} + SENTRY_PROFILES_SAMPLE_RATE: ${API_SENTRY_PROFILES_SAMPLE_RATE:-1.0} + PLUGIN_MAX_PACKAGE_SIZE: ${PLUGIN_MAX_PACKAGE_SIZE:-52428800} + INNER_API_KEY_FOR_PLUGIN: ${PLUGIN_DIFY_INNER_API_KEY:-QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1} + depends_on: + - db + - redis + volumes: + # Mount the storage directory to the container, for storing user files. + - ./volumes/app/storage:/app/api/storage + networks: + - ssrf_proxy_network + - default + # Frontend web application. web: image: ccr.ccs.tencentyun.com/yfgaia/dify-plus-web:1.2.0