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