forked from erp-dev/erp
feat: running on docker fully, and added rabbitmq/worker container
This commit is contained in:
@@ -103,6 +103,7 @@ INSTALLED_APPS = [
|
||||
'rest_framework',
|
||||
'drf_spectacular',
|
||||
'basic_info',
|
||||
'business',
|
||||
'stock',
|
||||
'api_v1',
|
||||
'api_man',
|
||||
@@ -271,3 +272,17 @@ STATEFLOW_CURRENT_STATE_MODE = 'NEXT'
|
||||
# Printing module settings
|
||||
PRINTING_DEFAULT_PROCESS_ID = 1 # 默认印染流程ID
|
||||
PLATE_ORDER_DEFAULT_PROCESS_ID = 2 # 默认开版流程ID
|
||||
|
||||
# Celery 配置
|
||||
CELERY_BROKER_URL = env(
|
||||
'CELERY_BROKER_URL',
|
||||
default='amqp://guest:guest@rabbitmq:5672//',
|
||||
)
|
||||
CELERY_RESULT_BACKEND = env(
|
||||
'CELERY_RESULT_BACKEND',
|
||||
default='redis://redis:6379/0',
|
||||
)
|
||||
CELERY_ACCEPT_CONTENT = ['json']
|
||||
CELERY_TASK_SERIALIZER = 'json'
|
||||
CELERY_RESULT_SERIALIZER = 'json'
|
||||
CELERY_TIMEZONE = TIME_ZONE
|
||||
|
||||
Reference in New Issue
Block a user