feat(ml): enregistrer le modèle dans le MLflow Model Registry
This commit is contained in:
@@ -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:
|
||||
Reference in New Issue
Block a user