Camilo Pi帽贸n
12/05/2024, 2:16 PMservices:
minio:
image: minio/minio
container_name: minio
ports:
- "6060:6060"
- "6001:6001"
volumes:
- minio-data:/data
env_file:
- .env
command: server --address 0.0.0.0:6060 --console-address ":6001" /data
restart: always
logging:
driver: "local"
options:
max-size: 10m
healthcheck:
test: ["CMD", "curl", "-f", "<http://localhost:6060/minio/health/live>"]
interval: 30s
timeout: 20s
retries: 3
createbuckets:
image: minio/mc
depends_on:
- minio
env_file:
- .env
entrypoint: >
/bin/sh -c "
/usr/bin/mc alias set myminio http://${EXTERNAL_IP}:6060 ${MINIO_ROOT_USER} ${MINIO_ROOT_PASSWORD};
/usr/bin/mc mb myminio/ml-artifacts;
/usr/bin/mc admin policy attach myminio readwrite --user ${MINIO_ROOT_USER};
exit 0;
"
# Postgres
db:
image: postgres:13
container_name: mlflow_db
expose:
- "5433"
ports:
- "5433:5433"
environment:
- POSTGRES_USER=mlflow
- POSTGRES_PASSWORD=mlflow
- POSTGRES_DATABASE=mlflow
command: -p 5433
restart: always
# MLflow
mlflow:
build:
context: mlflow
dockerfile: mlflow.Dockerfile
container_name: mlflow
restart: always
env_file:
- .env
ports:
- "5000:5000"
environment:
- MLFLOW_S3_ENDPOINT_URL=<http://minio:6000>
- AWS_ACCESS_KEY_ID=${MINIO_ROOT_USER}
- AWS_SECRET_ACCESS_KEY=${MINIO_ROOT_PASSWORD}
- MLFLOW_S3_IGNORE_TLS=true
command: >
mlflow server
--backend-store-uri <postgresql://mlflow:mlflow@db:5433/mlflow>
--host 0.0.0.0
--default-artifact-root <s3://ml-artifacts/>
volumes:
minio-data:
The problem is that I'm not sure how should I modify the mlflow.yml config file to point to this mlflow server. Any insights?Hall
12/05/2024, 2:16 PMJuan Luis
12/05/2024, 3:39 PMJuan Luis
12/05/2024, 3:40 PM$ cat conf/base/mlflow.yml
server:
mlflow_tracking_uri: <http://0.0.0.0:5000>
work @Camilo Pi帽贸n?Laurens Vijnck
12/05/2024, 3:53 PMmlflow:
container_name: mlflow
build: "services/mlflow"
ports:
- "5001:5000"
command: mlflow server --host 0.0.0.0 --serve-artifacts
healthcheck:
test: wget <http://localhost:5000/health> || exit 1
interval: 30s
timeout: 10s
retries: 5
start_period: 30s
Laurens Vijnck
12/05/2024, 3:53 PMmatrix-pipeline:
image: ${IMG}
container_name: matrix
entrypoint:
- "/bin/sh"
- -ecx
- |
kedro run --runner ThreadRunner -e test -p test
environment:
MLFLOW_ENDPOINT: <http://mlflow:5000>
Laurens Vijnck
12/05/2024, 3:54 PMCamilo Pi帽贸n
01/08/2025, 4:03 PM