feat: Add poblacion_apta service to docker-compose, enhance API gateway for new service integration, and update README with service details. Introduce new database tables for poblacion_apta_jobs and poblacion_apta_rows, and implement functionality for handling cop/mod calculations in the cleaning service.
This commit is contained in:
@@ -12,6 +12,7 @@ Arquitectura de microservicios: cada servicio tiene su propia API, dependencias,
|
||||
| `api_gateway` | **8189** | 8000 | Python/FastAPI | Única puerta de entrada expuesta al host |
|
||||
| `extraction` | — | 8001 | Python/FastAPI | Extracción LLM; solo red Docker |
|
||||
| `cleaning` | — | 8002 | Python/FastAPI | Limpieza; solo red Docker |
|
||||
| `poblacion_apta` | — | 8003 | Python/FastAPI | Población apta (Verificador ST); solo red Docker |
|
||||
| `count-api` | — | 8080 | Go | Conteo OCR+ONNX; solo red Docker |
|
||||
| `database` | — | 5432 | PostgreSQL 16 | Solo red Docker |
|
||||
| `redis` | — | 6379 | Redis 7 | Solo red Docker |
|
||||
@@ -122,6 +123,7 @@ services/
|
||||
api_gateway/ — proxy HTTP (Python) → README
|
||||
extraction/ — LLM + jobs + conteo BD (Python) → README
|
||||
cleaning/ — limpieza de datos (Python) → README
|
||||
poblacion_apta/ — población apta / Verificador ST → README
|
||||
bot_descarga/ — API control remoto de bots → README
|
||||
count-api/ — OCR + ONNX stateless (Go) → README
|
||||
db/ — migraciones Alembic → README
|
||||
@@ -138,12 +140,14 @@ docker-compose.yml — stack completo
|
||||
|
||||
```
|
||||
jobs — contenedor de un trabajo del usuario
|
||||
tasks — módulo ejecutado (counting / extraction / cleaning)
|
||||
tasks — módulo ejecutado (counting / extraction / cleaning / poblacion_apta)
|
||||
count_job_files — resultado de conteo por PDF
|
||||
extraction_batches — lote de extracción
|
||||
extraction_rows — fila extraída por documento
|
||||
cleaning_jobs — job de limpieza
|
||||
cleaned_rows — fila transformada
|
||||
poblacion_apta_jobs — consolidado validado (PASO_BOT)
|
||||
poblacion_apta_rows
|
||||
```
|
||||
|
||||
Esquema completo: [`docs/database.dbml`](docs/database.dbml)
|
||||
@@ -156,6 +160,7 @@ Esquema completo: [`docs/database.dbml`](docs/database.dbml)
|
||||
- [`services/api_gateway/README.md`](services/api_gateway/README.md)
|
||||
- [`services/extraction/README.md`](services/extraction/README.md)
|
||||
- [`services/cleaning/README.md`](services/cleaning/README.md)
|
||||
- [`services/poblacion_apta/README.md`](services/poblacion_apta/README.md)
|
||||
- [`services/services-count-facturas-medicas-serving/README.md`](services/services-count-facturas-medicas-serving/README.md)
|
||||
- [`services/db/README.md`](services/db/README.md)
|
||||
- [`services/desktop_app/README.md`](services/desktop_app/README.md)
|
||||
|
||||
Reference in New Issue
Block a user