docs/src/content/setup_server.mdx
import Tabs from '@theme/Tabs'; import TabItem from '@theme/TabItem'; import TabsWrapper from '@site/src/components/TabsWrapper';
<TabsWrapper> <Tabs> <TabItem value="uv" label="Local (uv)" default>Install the Python package manager uv
(that will also install uvx command to invoke Python tools without installing them).
Start a MLflow server locally.
uvx mlflow server
:::info See Secure Installs to learn how to pin dependencies to known good versions using hash checking and upload-time filtering. :::
</TabItem> <TabItem value="local" label="Local (pip)">Python Environment: Python 3.10+
Install the mlflow Python package via pip and start a MLflow server locally.
pip install --upgrade mlflow
mlflow server
:::info See Secure Installs to learn how to pin dependencies to known good versions using hash checking and upload-time filtering. :::
</TabItem> <TabItem value="docker" label="Local (docker)">MLflow provides a Docker Compose file to start a local MLflow server with a PostgreSQL database and a MinIO server.
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>