add celery
continuous-integration/drone/push Build is failing

This commit is contained in:
jianxin committed 2024-01-19 00:37:31 +08:00
1 parent 14e1f91658
commit 4d92f700ad
14 files changed
+493 -132

No files matched your search

+29 -2
View File
@@ -1,8 +1,9 @@
version: '3'
services:
office-xbot-feishu:
container_name: office-xbot-feishu-0
office-xbot-app:
container_name: office-xbot-app
image: "${APP_IMAGE}"
command: "flask --app app:create_app run --debug --port 8080 --host 0.0.0.0"
ports:
- "0.0.0.0:8080:8080"
environment:
@@ -12,3 +13,29 @@ services:
- VERIFICATION_TOKEN=${VERIFICATION_TOKEN}
- BITABLE_TOKEN=${BITABLE_TOKEN}
- TABLE_ID=${TABLE_ID}
- BROKER_URL=${BROKER_URL}
- RESULT_BACKEND=${RESULT_BACKEND}
office-xbot-celery:
container_name: office-xbot-celery
image: "${APP_IMAGE}"
command: "celery -A app.make_celery worker --loglevel INFO"
environment:
- APP_ID=${APP_ID}
- APP_SECRET=${APP_SECRET}
- ENCRYPT_KEY=${ENCRYPT_KEY}
- VERIFICATION_TOKEN=${VERIFICATION_TOKEN}
- BITABLE_TOKEN=${BITABLE_TOKEN}
- TABLE_ID=${TABLE_ID}
- BROKER_URL=${BROKER_URL}
- RESULT_BACKEND=${RESULT_BACKEND}
office-xbot-redis:
container_name: office-xbot-redis
image: redis:latest
ports:
- "6379:6379"
networks:
office-xbot-network:
external: true