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