diff --git a/docker-compose-ocr.yml b/docker-compose-ocr.yml new file mode 100644 index 0000000..fc9f75a --- /dev/null +++ b/docker-compose-ocr.yml @@ -0,0 +1,26 @@ +version: '3.8' + +services: + effi-ocr: + build: + context: ./effi-ocr + dockerfile: Dockerfile + container_name: effi-ocr + ports: + - "8300:8300" + restart: unless-stopped + environment: + - PYTHONUNBUFFERED=1 + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8300/health"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 10s + networks: + - effi-net + +networks: + effi-net: + external: true + name: effi-network diff --git a/effi-ocr/TOOL-OPENWEBUI.md b/effi-ocr/TOOL-OPENWEBUI.md index e379894..e5decc7 100644 --- a/effi-ocr/TOOL-OPENWEBUI.md +++ b/effi-ocr/TOOL-OPENWEBUI.md @@ -125,6 +125,12 @@ class Tools: Dans les Settings d'OpenWebUI (Admin → Settings → Environment Variables) : +**Si effi-ocr est sur le MEME serveur (recommandé):** +``` +OCR_URL=http://host.docker.internal:8300 +``` + +**Si effi-ocr est sur un autre serveur (Fedora 192.168.1.11):** ``` OCR_URL=http://192.168.1.11:8300 ```