Add paddleocr and paddlex volume configurations in docker-compose.yml

- Introduced new volumes for paddle_cache, paddleocr_cache, and paddlex_data to support the PaddleOCR service.
- Updated the OCR service command to remove the Russian language option, streamlining the serving process.
- These changes enhance the configuration for PaddleOCR, improving its usability and performance.
This commit is contained in:
Yury Kossakovsky
2025-08-29 16:01:36 -06:00
parent d95f3e56d7
commit a12cf92cae

View File

@@ -14,6 +14,9 @@ volumes:
n8n_storage:
ollama_storage:
open-webui:
paddle_cache:
paddleocr_cache:
paddlex_data:
portainer_data:
postgresus_data:
postiz-config:
@@ -755,7 +758,11 @@ services:
python -m pip install --upgrade pip; \
python -m pip install --no-cache-dir 'paddlex[ocr]'; \
python -m paddlex --install serving; \
exec python -m paddlex --serve --pipeline OCR --device cpu --port 8080 --lang ru"
exec python -m paddlex --serve --pipeline OCR --device cpu --port 8080"
volumes:
- paddleocr_cache:/root/.paddleocr
- paddle_cache:/root/.cache/paddle
- paddlex_data:/root/.paddlex
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://localhost:8080 > /dev/null || exit 1"]
interval: 30s