Course Wiki

Homework — MLOps Zoomcamp Module 3

If you want to run MLFlow with Docker, you can do this:

MLOps Zoomcamp › Module 3: Orchestration & ML Pipelines › Homework

Notes

More information here.

Resources

Mlflow

If you want to run MLFlow with Docker, you can do this:

Create a dockerfile for mlflow, e.g. mlflow.dockerfile:

FROM python:3.10-slim
RUN pip install mlflow==2.12.1

EXPOSE 5000
CMD [ \
    "mlflow", "server", \
    "--backend-store-uri", "sqlite:///home/mlflow_data/mlflow.db", \
    "--host", "0.0.0.0", \
    "--port", "5000" \
]

Add it to the docker-compose.yaml:

  mlflow:
    build:
      context: .
      dockerfile: mlflow.dockerfile
    ports:
      - "5000:5000"
    volumes:
      - "${PWD}/mlflow_data:/home/mlflow_data/"

In your code, make sure you use the same version of mlflow (mlflow==2.12.1).

When you run it, mlflow should be accessible at http://mlflow:5000.

Notes

Notes previous editions

Notes 2025

Did you take notes? Add them here:


DataTalks.Club. Hosted on GitHub Pages. Built with Rustkyll. We use cookies.