Deploy mlflow locally with postgresql and aws S3 bucket.
An AWS account is required.
Steps:
- Create aws bucket (in S3 service)
- Download file with Credentials (in section My Security Credentials)
- Install awscli (for MacOs "brew install awscli" in terminal)
- Enter parameters to access aws services via awscli
- awscli configure (in MacOS terminal) and enter the data from the file uploaded in step 2. (for the zone you need to enter the bucket zone - in the bucket settings)
- Check the correctness of access using the command
- aws s3api list-buckets You will see a list of buckets.
- Start PG docker container (in the terminal in the project directory, execute the command docker-compose up)
- Install mlflow
- pip3 install mlflow
- Run mlflow
mlflow server --backend-store-uri postgresql://user_name:[email protected]/database_name
--default-artifact-root s3://bucket_name
--host 0.0.0.0
--port 5000 user_name, password, database_name in database.env file - Follow the link http://0.0.0.0:5000/