fix(effi-ocr): update OpenWebUI tool config and add effi-server deployment
- Update TOOL-OPENWEBUI.md with correct OCR_URL for local deployment - Add docker-compose-ocr.yml for deploying effi-ocr on effi-server - Clarify architecture: effi-ocr must be on same server as OpenWebUI - Update environment variable documentation for OCR_URL
This commit is contained in:
@@ -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
|
||||||
@@ -125,6 +125,12 @@ class Tools:
|
|||||||
|
|
||||||
Dans les Settings d'OpenWebUI (Admin → Settings → Environment Variables) :
|
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
|
OCR_URL=http://192.168.1.11:8300
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user