forked from CogStack/ocr-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
41 lines (38 loc) · 960 Bytes
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
version: "3.7"
services:
ocr-service:
container_name: ocr-service
platform: linux
# image: cogstacksystems/cogstack-ocr-service:latest
build: .
restart: always
mem_swappiness: 0
# cpuset: "0-15"
shm_size : 1024mb
privileged: true
security_opt:
- seccomp:unconfined
environment:
- http_proxy=$HTTP_PROXY
- https_proxy=$HTTPS_PROXY
- no_proxy=$no_proxy
# tesseract threading is disabled as the processing will take care of distribution
- OMP_THREAD_LIMIT=1
# ocr service variables
- OCR_WEB_SERVICE_WORKERS=2
- OCR_WEB_SERVICE_THREADS=1
- OCR_SERVICE_LOG_LEVEL=20
- OCR_SERVICE_CPU_THREADS=4
- OCR_SERVICE_CONVERTER_THREADS=4
- OCR_SERVICE_OPERATION_MODE=OCR
ulimits:
memlock:
soft: -1
hard: -1
nofile:
soft: 65536
hard: 262144
ports:
- "8090:8090"
expose:
- "8090"