feat: Update .env.example and Docker Compose configurations to enhance service performance and health checks. Adjust OCR settings for improved document processing efficiency, and refine API Gateway health checks for better service monitoring. Revise desktop application documentation to reflect new API Gateway URL and installation instructions.
This commit is contained in:
@@ -7,7 +7,7 @@ Enruta las peticiones del cliente hacia los microservicios internos sin lógica
|
||||
|
||||
## Puerto
|
||||
|
||||
**8000**
|
||||
**8189** en el host (mapeado al **8000** interno del contenedor). Es el único puerto publicado por `docker-compose`.
|
||||
|
||||
---
|
||||
|
||||
@@ -15,6 +15,7 @@ Enruta las peticiones del cliente hacia los microservicios internos sin lógica
|
||||
|
||||
| Ruta cliente | Servicio destino | Descripción |
|
||||
|--------------|------------------|-------------|
|
||||
| `GET /health/live` | *(local)* | Liveness sin consultar upstreams |
|
||||
| `GET /health` | Agrega `/health` de los tres servicios | Estado del sistema |
|
||||
| `GET /models` | `extraction:8001/models` | Modelos LLM disponibles |
|
||||
| `GET /config` | `extraction:8001/config` + `cleaning:8002/rules` | Configuración |
|
||||
@@ -26,7 +27,7 @@ Enruta las peticiones del cliente hacia los microservicios internos sin lógica
|
||||
| `/count/{path}` | `count-api:8080/{path}` | Conteo OCR+ML (quita prefijo) |
|
||||
|
||||
El proxy reenvía método, query string, headers y body sin modificaciones.
|
||||
Timeout: ilimitado (para uploads grandes).
|
||||
Timeouts: JSON 30s lectura; uploads `/count/*` e ingest 600s.
|
||||
|
||||
---
|
||||
|
||||
@@ -63,4 +64,4 @@ requirements.txt — fastapi, httpx, uvicorn
|
||||
docker compose up --build api_gateway
|
||||
```
|
||||
|
||||
API disponible en `http://localhost:8000`.
|
||||
API disponible en `http://127.0.0.1:8189` (único puerto expuesto por docker-compose).
|
||||
|
||||
Reference in New Issue
Block a user