change mlflow to use database instead of mlflow folder

This commit is contained in:
Marko Djordjevic 2026-02-21 09:35:15 +01:00
parent 187243bfdb
commit d7f583701c

View file

@ -48,6 +48,7 @@ services:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
- POSTGRES_HOST=postgres
restart: unless-stopped
depends_on:
postgres:
@ -69,8 +70,8 @@ services:
- mlflow-data:/mlflow
command: >
mlflow server
--backend-store-uri /mlflow
--default-artifact-root /mlflow/artifacts
--backend-store-uri "postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@postgres:5432/${POSTGRES_DB}"
--default-artifact-root ./mlruns/artifacts
--host 0.0.0.0
--port 5000
restart: unless-stopped