Back to Mlflow

Setup Server Slim

docs/src/content/setup_server_slim.mdx

3.12.0947 B
Original Source

import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import TabsWrapper from '@site/src/components/TabsWrapper';

<TabsWrapper> <Tabs> <TabItem value="local" label="Local (pip)" default>

If you have a local Python environment >= 3.10, you can start the MLflow server locally using the mlflow CLI command.

bash
mlflow server
</TabItem> <TabItem value="docker" label="Local (docker)">

MLflow also provides a Docker Compose file to start a local MLflow server with a postgres database and a minio server.

bash
git clone --depth 1 --filter=blob:none --sparse https://github.com/mlflow/mlflow.git
cd mlflow
git sparse-checkout set docker-compose
cd docker-compose
cp .env.dev.example .env
docker compose up -d

Refer to the instruction for more details, e.g., overriding the default environment variables.

</TabItem> </Tabs> </TabsWrapper>