|
|
|
|
@ -514,6 +514,14 @@ x-shared-env: &shared-api-worker-env
|
|
|
|
|
QUEUE_MONITOR_THRESHOLD: ${QUEUE_MONITOR_THRESHOLD:-200}
|
|
|
|
|
QUEUE_MONITOR_ALERT_EMAILS: ${QUEUE_MONITOR_ALERT_EMAILS:-}
|
|
|
|
|
QUEUE_MONITOR_INTERVAL: ${QUEUE_MONITOR_INTERVAL:-30}
|
|
|
|
|
ENABLE_CLEAN_EMBEDDING_CACHE_TASK: ${ENABLE_CLEAN_EMBEDDING_CACHE_TASK:-false}
|
|
|
|
|
ENABLE_CLEAN_UNUSED_DATASETS_TASK: ${ENABLE_CLEAN_UNUSED_DATASETS_TASK:-false}
|
|
|
|
|
ENABLE_CREATE_TIDB_SERVERLESS_TASK: ${ENABLE_CREATE_TIDB_SERVERLESS_TASK:-false}
|
|
|
|
|
ENABLE_UPDATE_TIDB_SERVERLESS_STATUS_TASK: ${ENABLE_UPDATE_TIDB_SERVERLESS_STATUS_TASK:-false}
|
|
|
|
|
ENABLE_CLEAN_MESSAGES: ${ENABLE_CLEAN_MESSAGES:-false}
|
|
|
|
|
ENABLE_MAIL_CLEAN_DOCUMENT_NOTIFY_TASK: ${ENABLE_MAIL_CLEAN_DOCUMENT_NOTIFY_TASK:-false}
|
|
|
|
|
ENABLE_DATASETS_QUEUE_MONITOR: ${ENABLE_DATASETS_QUEUE_MONITOR:-false}
|
|
|
|
|
ENABLE_CHECK_UPGRADABLE_PLUGIN_TASK: ${ENABLE_CHECK_UPGRADABLE_PLUGIN_TASK:-true}
|
|
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
# API service
|
|
|
|
|
@ -571,6 +579,28 @@ services:
|
|
|
|
|
- ssrf_proxy_network
|
|
|
|
|
- default
|
|
|
|
|
|
|
|
|
|
# worker_beat service
|
|
|
|
|
# Celery beat for scheduling periodic tasks.
|
|
|
|
|
worker_beat:
|
|
|
|
|
image: langgenius/dify-api:1.5.0
|
|
|
|
|
restart: always
|
|
|
|
|
environment:
|
|
|
|
|
# Use the shared environment variables.
|
|
|
|
|
<<: *shared-api-worker-env
|
|
|
|
|
# Startup mode, 'worker_beat' starts the Celery beat for scheduling periodic tasks.
|
|
|
|
|
MODE: beat
|
|
|
|
|
depends_on:
|
|
|
|
|
db:
|
|
|
|
|
condition: service_healthy
|
|
|
|
|
redis:
|
|
|
|
|
condition: service_started
|
|
|
|
|
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: langgenius/dify-web:1.5.1
|
|
|
|
|
|