change mlflow to use database instead of mlflow folder
This commit is contained in:
parent
187243bfdb
commit
d7f583701c
1 changed files with 5 additions and 4 deletions
|
|
@ -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:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue