mirror of
https://github.com/fastapi-practices/fastapi-best-architecture.git
synced 2026-10-07 02:01:41 +00:00
* Replace APScheduler to Celery task * black format * Add celery to run the script * Update celery usage to README * Update test task * Add celery rabbitmq broker * Fix dockerfiles * Add task interface access authorization * Update celery deploy run * Fix dockerfiles * Fix supervisor conf * Update celery broker default is redis * Force the pro env to use rabbitmq * Update the task interface * Add celery beat README description * Update warning text style * Revoke the default config comment content of the supervisor
28 lines
634 B
Bash
28 lines
634 B
Bash
# Env: dev、pro
|
|
ENVIRONMENT='dev'
|
|
# MySQL
|
|
DB_HOST='fba_mysql'
|
|
DB_PORT=3306
|
|
DB_USER='root'
|
|
DB_PASSWORD='123456'
|
|
# Redis
|
|
REDIS_HOST='fba_redis'
|
|
REDIS_PORT=6379
|
|
REDIS_PASSWORD=''
|
|
REDIS_DATABASE=0
|
|
# Celery
|
|
CELERY_REDIS_HOST='fba_redis'
|
|
CELERY_REDIS_PORT=6379
|
|
CELERY_REDIS_PASSWORD=''
|
|
CELERY_BROKER_REDIS_DATABASE=1
|
|
CELERY_BACKEND_REDIS_DATABASE=2
|
|
# Rabbitmq
|
|
RABBITMQ_HOST='fba_rabbitmq'
|
|
RABBITMQ_PORT=5672
|
|
RABBITMQ_USERNAME='guest'
|
|
RABBITMQ_PASSWORD='guest'
|
|
# Token
|
|
TOKEN_SECRET_KEY='1VkVF75nsNABBjK_7-qz7GtzNy3AMvktc9TCPwKczCk'
|
|
# Opera Log
|
|
OPERA_LOG_ENCRYPT_SECRET_KEY='d77b25790a804c2b4a339dd0207941e4cefa5751935a33735bc73bb7071a005b'
|