chore: add worker_beat to docker compose template

This commit is contained in:
Junyan Qin 2025-07-09 11:06:32 +08:00
parent 1016678ea4
commit 6a29b9f766
No known key found for this signature in database
GPG Key ID: 22FE3AFADC710CEB
1 changed files with 22 additions and 0 deletions

View File

@ -55,6 +55,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