42 lines
1.1 KiB
YAML
42 lines
1.1 KiB
YAML
version: '3'
|
|
services:
|
|
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:
|
|
- 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-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
|