Update deployment config
This commit is contained in:
parent
a97559b65c
commit
755e894139
@ -1,12 +1,12 @@
|
|||||||
device = "cuda:0"
|
device = "cuda:0"
|
||||||
ocr_engine = {
|
ocr_engine = {
|
||||||
"detector": {
|
"detector": {
|
||||||
"version": "/workspace/cope2n-ai-fi/weights/models/ocr_engine/sdsvtd/epoch_68_params.pth",
|
"version": "/workspace/cope2n-ai-fi/weights/models/ocr_engine/sdsvtd/epoch_94_params.pth",
|
||||||
"rotator_version": "/workspace/cope2n-ai-fi/weights/models/ocr_engine/sdsvtd/best_bbox_mAP_epoch_30_lite.pth",
|
"rotator_version": "/workspace/cope2n-ai-fi/weights/models/ocr_engine/sdsvtd/best_bbox_mAP_epoch_30_lite.pth",
|
||||||
"device": device
|
"device": device
|
||||||
},
|
},
|
||||||
"recognizer": {
|
"recognizer": {
|
||||||
"version": "/workspace/cope2n-ai-fi/weights/models/sdsvtr/hub/satrn_lite_general_sbt_imei_20231205_params.pth",
|
"version": "/workspace/cope2n-ai-fi/weights/models/sdsvtr/hub/sbt_20231210_sdsrv.pth",
|
||||||
"device": device
|
"device": device
|
||||||
},
|
},
|
||||||
"deskew": {
|
"deskew": {
|
||||||
|
@ -32,7 +32,7 @@ services:
|
|||||||
command: bash run.sh
|
command: bash run.sh
|
||||||
deploy:
|
deploy:
|
||||||
mode: replicated
|
mode: replicated
|
||||||
replicas: 1
|
replicas: 3
|
||||||
# Back-end services
|
# Back-end services
|
||||||
be-ctel-sbt:
|
be-ctel-sbt:
|
||||||
build:
|
build:
|
||||||
@ -61,7 +61,7 @@ services:
|
|||||||
- INTERNAL_SDS_KEY=${INTERNAL_SDS_KEY}
|
- INTERNAL_SDS_KEY=${INTERNAL_SDS_KEY}
|
||||||
- FI_USER_NAME=${FI_USER_NAME}
|
- FI_USER_NAME=${FI_USER_NAME}
|
||||||
- FI_PASSWORD=${FI_PASSWORD}
|
- FI_PASSWORD=${FI_PASSWORD}
|
||||||
- S3_ENDPOINT=http://minio:9884
|
- S3_ENDPOINT=${S3_ENDPOINT}
|
||||||
- S3_ACCESS_KEY=${S3_ACCESS_KEY}
|
- S3_ACCESS_KEY=${S3_ACCESS_KEY}
|
||||||
- S3_SECRET_KEY=${S3_SECRET_KEY}
|
- S3_SECRET_KEY=${S3_SECRET_KEY}
|
||||||
- S3_BUCKET_NAME=${S3_BUCKET_NAME}
|
- S3_BUCKET_NAME=${S3_BUCKET_NAME}
|
||||||
@ -76,8 +76,6 @@ services:
|
|||||||
depends_on:
|
depends_on:
|
||||||
db-sbt:
|
db-sbt:
|
||||||
condition: service_started
|
condition: service_started
|
||||||
# rabbitmq:
|
|
||||||
# condition: service_started
|
|
||||||
command: sh -c "sleep 5; python manage.py collectstatic --no-input &&
|
command: sh -c "sleep 5; python manage.py collectstatic --no-input &&
|
||||||
python manage.py migrate &&
|
python manage.py migrate &&
|
||||||
python manage.py compilemessages &&
|
python manage.py compilemessages &&
|
||||||
@ -143,7 +141,7 @@ services:
|
|||||||
- CTEL_KEY=${CTEL_KEY}
|
- CTEL_KEY=${CTEL_KEY}
|
||||||
- SECRET_KEY=${SECRET_KEY}
|
- SECRET_KEY=${SECRET_KEY}
|
||||||
- ALLOWED_HOSTS=${ALLOWED_HOSTS}
|
- ALLOWED_HOSTS=${ALLOWED_HOSTS}
|
||||||
- S3_ENDPOINT=http://minio:9884
|
- S3_ENDPOINT=${S3_ENDPOINT}
|
||||||
- S3_ACCESS_KEY=${S3_ACCESS_KEY}
|
- S3_ACCESS_KEY=${S3_ACCESS_KEY}
|
||||||
- S3_SECRET_KEY=${S3_SECRET_KEY}
|
- S3_SECRET_KEY=${S3_SECRET_KEY}
|
||||||
- S3_BUCKET_NAME=${S3_BUCKET_NAME}
|
- S3_BUCKET_NAME=${S3_BUCKET_NAME}
|
||||||
@ -163,14 +161,12 @@ services:
|
|||||||
- ./cope2n-api:/app
|
- ./cope2n-api:/app
|
||||||
|
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
command: sh -c "celery -A fwd_api.celery_worker.worker worker -l INFO -c 3"
|
command: sh -c "celery -A fwd_api.celery_worker.worker worker -l INFO -c 5"
|
||||||
|
|
||||||
# Back-end persistent
|
# Back-end persistent
|
||||||
db-sbt:
|
db-sbt:
|
||||||
restart: always
|
restart: always
|
||||||
mem_reservation: 500m
|
mem_reservation: 500m
|
||||||
# mem_limit: 1g
|
|
||||||
# container_name: sidp-cope2n-be-sbt-db
|
|
||||||
image: postgres:14.7-alpine
|
image: postgres:14.7-alpine
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/postgres_data:/var/lib/postgresql/data
|
- ./data/postgres_data:/var/lib/postgresql/data
|
||||||
@ -183,8 +179,6 @@ services:
|
|||||||
|
|
||||||
rabbitmq-sbt:
|
rabbitmq-sbt:
|
||||||
mem_reservation: 600m
|
mem_reservation: 600m
|
||||||
# mem_limit: 4g
|
|
||||||
# container_name: sidp-cope2n-be-rabbitmq-sbt
|
|
||||||
restart: always
|
restart: always
|
||||||
image: rabbitmq:3.10-alpine
|
image: rabbitmq:3.10-alpine
|
||||||
# ports:
|
# ports:
|
||||||
@ -206,7 +200,6 @@ services:
|
|||||||
shm_size: 10gb
|
shm_size: 10gb
|
||||||
dockerfile: Dockerfile
|
dockerfile: Dockerfile
|
||||||
shm_size: 10gb
|
shm_size: 10gb
|
||||||
# container_name: "sidp-cope2n-fe-ctel-sbt"
|
|
||||||
privileged: true
|
privileged: true
|
||||||
ports:
|
ports:
|
||||||
- 9889:80
|
- 9889:80
|
||||||
|
Loading…
Reference in New Issue
Block a user