version: 2.3.1

This commit is contained in:
pycook
2023-08-19 12:43:55 +08:00
parent 6531baff64
commit 3474a71a75
9 changed files with 14 additions and 16 deletions

View File

@@ -30,7 +30,7 @@ services:
- redis
cmdb-api:
image: registry.cn-hangzhou.aliyuncs.com/veops/cmdb-api:3.0
image: registry.cn-hangzhou.aliyuncs.com/veops/cmdb-api:2.3.1
# build:
# context: .
# target: cmdb-api
@@ -44,14 +44,13 @@ services:
- |
sed -i "s#USE_ACL = False#USE_ACL = True#g" settings.py
/wait
sleep 5
gunicorn --workers=3 autoapp:app -b 0.0.0.0:5000 -D
flask cmdb-init-cache
flask cmdb-init-acl
nohup flask cmdb-counter > counter.log 2>&1 &
celery worker -A celery_worker.celery -E -Q one_cmdb_async --concurrency=2 -D
celery worker -A celery_worker.celery -E -Q acl_async --concurrency=2
celery -A celery_worker.celery worker -E -Q one_cmdb_async --concurrency=2 -D
celery -A celery_worker.celery worker -E -Q acl_async --concurrency=2
depends_on:
- cmdb-db
- cmdb-cache
@@ -61,7 +60,7 @@ services:
- cmdb-api
cmdb-ui:
image: registry.cn-hangzhou.aliyuncs.com/veops/cmdb-ui:3.0
image: registry.cn-hangzhou.aliyuncs.com/veops/cmdb-ui:2.3.1
# build:
# context: .
# target: cmdb-ui