Skip to content

healthai-ai — Vue d'ensemble

Mono-repo des micro-services IA de la plateforme HealthAI.

Services

ServiceImagePortRôle
healthai-ai-apighcr.io/healthai-corpo/healthai-ai-api8000Gateway GraphQL — point d'entrée unique
healthai-visionghcr.io/healthai-corpo/healthai-vision8001Analyse nutritionnelle par photo (YOLO)
healthai-workoutghcr.io/healthai-corpo/healthai-workout8002Recommandation sportive (Scikit-learn)

Stack commune

  • Python 3.12 via uv
  • FastAPI + uvicorn
  • Communication inter-services : HTTPX async
  • Auth : Zitadel JWT géré par la gateway

Lancement rapide

bash
# Copier les .env
cp healthai-vision/.env.example healthai-vision/.env
cp healthai-workout/.env.example healthai-workout/.env
cp healthai-api/.env.example healthai-api/.env

# Éditer les .env avec les valeurs locales

# Lancer tous les services
docker compose up -d

Premier build

Le premier build de healthai-vision est long (~10-15 min) à cause des dépendances ML (Torch, Ultralytics).

URLs une fois démarrés

ServiceURL
Gateway (docs)http://localhost:8000/docs
Vision (docs)http://localhost:8001/docs
Workout (docs)http://localhost:8002/docs

Healthcheck global

bash
curl http://localhost:8000/test-internal

Réponse attendue :

json
{
  "gateway": "OK",
  "vision_service": { "status": "online" },
  "workout_service": { "status": "online" }
}