feat(ml): enregistrer le modèle dans le MLflow Model Registry

This commit is contained in:
Valentin
2026-09-21 14:52:00 +02:00
parent 268496a8c4
commit 9312d3b60f
6 changed files with 74 additions and 1 deletions
+33
View File
@@ -0,0 +1,33 @@
services:
mlflow-db:
image: postgres:16
environment:
POSTGRES_USER: mlflow
POSTGRES_PASSWORD: mlflow
POSTGRES_DB: mlflow
volumes:
- mlflow-db-data:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U mlflow"]
interval: 5s
retries: 10
mlflow:
build: .
depends_on:
mlflow-db:
condition: service_healthy
ports:
- "5000:5000"
volumes:
- mlflow-artifacts:/mlartifacts
command: >
mlflow server
--host 0.0.0.0 --port 5000
--backend-store-uri postgresql://mlflow:mlflow@mlflow-db:5432/mlflow
--artifacts-destination /mlartifacts
--serve-artifacts
volumes:
mlflow-db-data:
mlflow-artifacts: