From a12cf92caec714ed023c40ea4a0e5cf2806f79a5 Mon Sep 17 00:00:00 2001 From: Yury Kossakovsky Date: Fri, 29 Aug 2025 16:01:36 -0600 Subject: [PATCH] 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. --- docker-compose.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 9e13e46..aac7393 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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