Git Product home page Git Product logo

mlflow-auth-docker's Introduction

MLflow Deployment using Docker Compose with Authentication

MLflow Server with Authentication

This is an update version from Toumash/mlflow-docker

Update

  • Add reverse proxy for MinIO and MLflow

Features

  • MLflow server
  • MinIO GUI as artifact storage
  • PostgreSQL as mlflow storage
  • scripts to create user and assign policy for MinIO
  • scripts to creaet s3 bucket
  • automated update password for MLflow admin
  • test log experiment to MLflow

Setup

  1. Change parameter in .env, expetially for password and secret key
    • POSTGRES_USER, POSTGRES_PASSWORD for PostgreSQL
    • MINIO_ROOT_USER and MINIO_ROOT_PASSWORD for MinIO ROOT user
    • AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY for MinIO user to access S3 bucket from MLflow
    • MLFLOW_TRACKING_USERNAME and MLFLOW_TRACKING_PASSWORD for MLflow admin, initial from MLflow Authentication
    • MLFLOW_TRACKING_NEW_PASSWORD update password for MLflow admin
  2. Run docker-compose up -d
  3. Access MinIO GUI at http://localhost:9000 with MINIO_ROOT_USER and MINIO_ROOT_PASSWORD
  4. Access MLflow at http://localhost:5000 with MLFLOW_TRACKING_USERNAME and MLFLOW_TRACKING_NEW_PASSWORD

Reverse Proxy with Nginx

  1. How To Install Nginx on Ubuntu 20.04 with server blocks
  2. How To Secure Nginx with Let's Encrypt on Ubuntu 20.04
  3. Configuration for Nginx /etc/nginx/sites-available/__servername__ from nginx.conf refer to Configure NGINX Proxy for MinIO Server
  4. Chagne DOMAIN in .env to your domain
  5. Run docker-compose up -d
  6. Access MinIO GUI at https://DOMAIN/minio/ui/ with MINIO_ROOT_USER and MINIO_ROOT_PASSWORD
  7. Access MLflow at https://DOMAIN/mlflow/ with MLFLOW_TRACKING_USERNAME and MLFLOW_TRACKING_NEW_PASSWORD

Note

  • For Authentication, this feature is available in MLflow version 2.13.0 but this feature is still experimental and may change in a future release without warning.

mlflow-auth-docker's People

Contributors

paicaloid avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.