Commit 924b286c by imwangxiaozhou

feat(docker-compose): 新增celery worker服务配置

为LLM调用平台添加异步任务处理所需的celery工作者服务容器配置,包含对应环境变量与日志挂载设置
1 parent a43390f3
...@@ -17,3 +17,23 @@ services: ...@@ -17,3 +17,23 @@ services:
volumes: volumes:
- ./logs:/app/logs - ./logs:/app/logs
restart: unless-stopped restart: unless-stopped
celery:
build: .
container_name: llm-call-platform-celery
command: celery -A app.celery_app worker -l info -P solo
environment:
- LLMCP_DB_HOST=192.168.3.92
- LLMCP_DB_PORT=3308
- LLMCP_DB_USER=biz_multi_agentic
- LLMCP_DB_PASSWORD=JEIjHeLT
- LLMCP_DB_NAME=ai_llmbase
- LLMCP_ENCRYPTION_KEY=${LLMCP_ENCRYPTION_KEY:-change-me-in-production-must-be-32-bytes-long!}
- LLMCP_JWT_SECRET_KEY=${LLMCP_JWT_SECRET_KEY:-change-me-in-production}
- LLMCP_LOG_LEVEL=INFO
- LLMCP_LOG_STORAGE_PATH=/app/logs
- LLMCP_CELERY_BROKER_URL=redis://host.docker.internal:6379/0
- LLMCP_CELERY_RESULT_BACKEND=redis://host.docker.internal:6379/1
volumes:
- ./logs:/app/logs
restart: unless-stopped
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!