mirc detection
This commit is contained in:
@@ -23,7 +23,7 @@ services:
|
||||
networks:
|
||||
- cheque-scanner-network
|
||||
|
||||
worker:
|
||||
worker1:
|
||||
build: ./worker
|
||||
depends_on:
|
||||
- redis
|
||||
@@ -38,11 +38,35 @@ services:
|
||||
- TEMP_FOLDER=/app/data/tmp
|
||||
- QUEUE_NAME=cheque_processing
|
||||
- HIGH_PRIORITY_QUEUE_NAME=cheque_processing_high
|
||||
- TESSERACT_DATA_PATH=/usr/share/tesseract-ocr/4.00/tessdata
|
||||
- DEFAULT_OCR_LANGUAGE=eng
|
||||
- ALTERNATIVE_OCR_LANGUAGE=fra
|
||||
deploy:
|
||||
replicas: ${WORKER_REPLICAS:-2}
|
||||
- TESSERACT_DATA_PATH=/usr/share/tesseract-ocr/5/tessdata
|
||||
- DEFAULT_OCR_LANGUAGE=fra
|
||||
- ALTERNATIVE_OCR_LANGUAGE=eng
|
||||
- WORKER_NAME=worker-1
|
||||
command: ["python", "worker.py", "--queues", "cheque_processing", "--name", "worker-1"]
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- cheque-scanner-network
|
||||
|
||||
worker2:
|
||||
build: ./worker
|
||||
depends_on:
|
||||
- redis
|
||||
volumes:
|
||||
- shared_data:/app/data
|
||||
- ./shared:/app/shared
|
||||
- ./api/app:/app/api_app
|
||||
environment:
|
||||
- REDIS_URL=redis://redis:6379/0
|
||||
- UPLOAD_FOLDER=/app/data/uploads
|
||||
- RESULT_FOLDER=/app/data/results
|
||||
- TEMP_FOLDER=/app/data/tmp
|
||||
- QUEUE_NAME=cheque_processing
|
||||
- HIGH_PRIORITY_QUEUE_NAME=cheque_processing_high
|
||||
- TESSERACT_DATA_PATH=/usr/share/tesseract-ocr/5/tessdata
|
||||
- DEFAULT_OCR_LANGUAGE=fra
|
||||
- ALTERNATIVE_OCR_LANGUAGE=eng
|
||||
- WORKER_NAME=worker-2
|
||||
command: ["python", "worker.py", "--queues", "cheque_processing", "--name", "worker-2"]
|
||||
restart: unless-stopped
|
||||
networks:
|
||||
- cheque-scanner-network
|
||||
@@ -62,9 +86,9 @@ services:
|
||||
- RESULT_FOLDER=/app/data/results
|
||||
- TEMP_FOLDER=/app/data/tmp
|
||||
- QUEUE_NAME=cheque_processing_high
|
||||
- TESSERACT_DATA_PATH=/usr/share/tesseract-ocr/4.00/tessdata
|
||||
- DEFAULT_OCR_LANGUAGE=eng
|
||||
- ALTERNATIVE_OCR_LANGUAGE=fra
|
||||
- TESSERACT_DATA_PATH=/usr/share/tesseract-ocr/5/tessdata
|
||||
- DEFAULT_OCR_LANGUAGE=fra
|
||||
- ALTERNATIVE_OCR_LANGUAGE=eng
|
||||
- WORKER_NAME=priority-worker
|
||||
entrypoint: ["/priority_entrypoint.sh"]
|
||||
command: ["python", "worker.py", "--queues", "cheque_processing_high", "--name", "priority-worker"]
|
||||
|
||||
Reference in New Issue
Block a user