MLflow self hosted: Docker, Kubernetes and on premise

The open-source MLflow server runs in infrastructure you control through pip, Docker Compose or an official Helm chart, under Apache 2.0. The decisions that matter are the backend database, artifact storage, and who runs upgrades and high availability.

On this page

Can we run self-hosted MLflow on our own servers, Kubernetes or on premise?

The open-source MLflow server can be self-hosted with pip, Docker Compose or the official Helm chart for Kubernetes, and it is released under the Apache License 2.0, so the server itself carries no license fee. Managed MLflow from Databricks and Amazon SageMaker AI are separate, vendor-run offerings with their own pricing and operating model, and your team does not need either one to run the open-source server on infrastructure you control. Running it yourself means operating three components: a tracking server, a FastAPI application that hosts the UI and REST APIs; a backend store for experiment, run and trace metadata, reached through SQLAlchemy; and an artifact store for large files such as model weights. Start by reading the MLflow self-hosting documentation against your target platform.

The backend database is the first decision with lasting consequences. MLflow's documentation lists PostgreSQL, MySQL, SQLite and MSSQL as supported backend databases, and SQLite has been the default since MLflow 3.7.0. A pip install followed by mlflow server --port 5000 suits personal use or a small team, but the documentation describes PostgreSQL as the suggested choice for scaling up. The repository's Docker Compose project provisions MLflow, PostgreSQL and RustFS together, which makes it a useful reference build. Confirm that RustFS meets your storage standards before you reuse it. For artifacts, the documentation suggests object storage such as Amazon S3. Set the database backup schedule, the bucket access policy and the retention rules before go-live, and plan to restore metadata and artifacts as a pair, then test that restore.

Two decisions sit outside this page. Authentication shapes the network layout, because basic HTTP auth keeps users and permissions in a database, while SSO runs through a community plugin or a reverse proxy in front of the tracking server. Team isolation, whether one server serves several teams or each team gets its own deployment, changes the database and bucket layout. Before you choose a route, confirm three items in your environment: the Python version in your build images, since the current mlflow package requires Python 3.10 or later; whether your Kubernetes platform can run the official Helm chart; and whether the host and CORS protection flags you plan to use are supported by your server choice, because they apply only to the default FastAPI (uvicorn) server, so a gunicorn or waitress setup loses them.

Which self-hosting capabilities are built in, optional or outside MLflow

This table compares each self-hosting capability for MLflow with its status in the open-source project and on managed services. Read each status as built in, optional, outside component or not applicable to self-hosting. The main takeaway is that pip suits personal use or small teams, while a production setup means choosing your own database, artifact store and authentication.

CapabilityOpen-source self-hosted statusManaged service status
pip install with the mlflow server commandBuilt in. Run pip install mlflow, then mlflow server --port 5000. Suits personal use or small teams.Not applicable to self-hosting. Managed services run their own tracking server.
Docker Compose project in the repositoryOptional. The repository project provisions MLflow, PostgreSQL and RustFS. Start it with docker compose up -d.Not applicable to self-hosting. Managed services run their own tracking server.
Official Helm chart for KubernetesOptional. MLflow's self-hosting documentation describes an official chart for Kubernetes clusters you run.Not applicable to self-hosting. Managed services run their own tracking server.
Third-party Helm chart on Artifact HubOutside component. Listed in the documentation but not maintained by MLflow. Check its maintainer and versions before use.Not applicable to self-hosting.
Backend database (PostgreSQL, MySQL, SQLite, MSSQL)Built in. SQLite is the default since MLflow 3.7.0. PostgreSQL is suggested for scaling up.Provider-managed. SageMaker runs the metadata store in an AWS-managed service account.
Object storage for artifacts (such as Amazon S3)Optional. You choose the artifact store. Object storage such as Amazon S3 is suggested for large files.Provider-managed. SageMaker keeps artifacts in an S3 bucket in your own account.
Authentication (basic HTTP auth, SSO, custom plugins)Optional. Basic auth needs mlflow[auth] and the basic-auth app name. SSO and plugins are covered separately.Provider-managed. Confirm how each platform handles user access and SSO.
Vendor-managed hostingNot applicable to self-hosting. You run the tracking server yourself.Listed options: Databricks, Amazon SageMaker, Azure Machine Learning, Nebius and Google Cloud GKE.

How the tracking server, backend store and artifact store fit together

The tracking server, backend store and artifact store are three separate roles, and each can run on different infrastructure. The tracking server is a FastAPI server that hosts the MLflow UI and the REST APIs clients call to log runs, traces and models. The backend store holds experiment, run and trace metadata such as parameters, metrics, tags and run status, and the tracking server reaches it through SQLAlchemy. The artifact store holds large files such as model weights, and the MLflow architecture overview suggests object storage such as Amazon S3 for them. Before you deploy, write down which system holds each role, because security reviewers will ask about these three roles one by one.

Three settings decide where things live and who can reach them, and each is set in a different place. The database connection passed to the server decides where metadata lives, so it is the first setting to check when someone asks where experiment history is stored. The artifact location decides where large files go. Confirm in the MLflow docs whether existing experiments keep their original artifact location if you later change the default. The server process decides which network clients can reach it through its bind address, its allowed-host and CORS flags, and any reverse proxy placed in front of it. Those host and CORS flags work only with the default FastAPI (uvicorn) server, so a team that moves to gunicorn or waitress has to plan that protection somewhere else.

The Docker Compose project in the MLflow repository provisions MLflow, PostgreSQL and RustFS, and starts with docker compose up -d. Treat it as a reference stack you adapt. It is not a finished production layout, and it does not settle backups, high availability, TLS termination, secrets handling or network segmentation for you. Before you adopt it, confirm in your own environment where the PostgreSQL data volume lives and who backs it up, which credentials the server uses for the artifact bucket and how they are injected, and which ports are published to which networks. Record the database connection, the artifact location and the server address for each environment so a reviewer can trace every setting to a named owner.

How a self-hosted MLflow server connects clients, database and object storage

The diagram starts with notebooks, scheduled jobs and CI runners, all inside the organization network. Each one sends HTTP requests to a reverse proxy or ingress, which is where you add access controls such as single sign-on or network rules, before the requests reach the MLflow tracking server. The server writes experiment, run and trace metadata to a SQL backend database through SQLAlchemy, and sends large files such as model weights to object storage. Check which client paths reach the artifact store, and confirm that the proxy, database and bucket all sit inside the boundary you control.

Clients reach the tracking server through a proxy, then write to separate stores.

Choices that shape a self-hosted MLflow deployment

Six decisions set the shape of a self-hosted MLflow deployment, and several are expensive to change once teams start logging runs. Each card names one choice and what it affects: backup scope, scaling, upgrade effort or security review. Settle the database and artifact store first, because they decide what has to be backed up and restored.

Choose the install route

The self-hosting docs describe three routes. Run pip install mlflow and then mlflow server --port 5000 for personal use or a small team. The repository's Docker Compose project provisions MLflow, PostgreSQL and RustFS, and is best treated as a reference you adapt. For Kubernetes, the official Helm chart is the supported route. A third-party chart on Artifact Hub is a separate decision, so check who publishes it, how often it is updated and whether your security team accepts its provenance. Each route sets your upgrade effort and the scope of the security review.

Self-hosting docs

Pick the backend database

The backend store holds experiment, run and trace metadata and is reached through SQLAlchemy. SQLite has been the default since MLflow 3.7.0, which suits one user on one machine. For shared use, PostgreSQL is the choice the self-hosting docs suggest for scaling up. The architecture docs also list MySQL and MSSQL as supported backends, but confirm either one against your DBA standards before you choose it. Backup scope, restore testing and any failover design all follow from this decision.

Architecture overview

Set artifact storage and bucket ownership

The artifact store holds large files such as model weights, and MLflow's architecture docs suggest object storage such as Amazon S3. Decide which team creates the bucket, which team holds its access keys, and whether the owner of the tracking server also owns the data in the bucket. Bucket ownership decides who approves restores and who answers the audit questions about stored models. Confirm versioning, encryption, retention and lifecycle rules with your storage team, because those settings determine what a restore can bring back.

Choose the server process

The tracking server is a FastAPI application, and the default process is uvicorn. The self-hosting docs state that the host and CORS protection flags work only with the default FastAPI (uvicorn) server. If your platform team standardizes on gunicorn or waitress, those protections are unavailable and you need another control for the same risk, which your security team must accept. Settle the server process before the security review starts, because the reviewer will test the flags you claim. This choice also shapes the scaling model you document.

Self-hosting docs

Plan network placement and ingress

Decide whether the tracking server is reachable from user networks, a corporate VPN, or only from the training and build hosts that log runs. Place the reverse proxy or Kubernetes ingress in front of it, then set the allowed-hosts value to match the names clients use. Each path to the server needs TLS, access logs that your reviewers can read and a firewall rule your network team owns. Confirm with the network team which routes to the database and artifact store are permitted. Placement sets the attack surface your security review will examine.

Pick the host platform

The server can run on on-premise hosts, on virtual machines or inside a Kubernetes cluster your organization already operates. Physical hosts and VMs keep the moving parts few, but restarts, patching and host failure recovery stay with your operations team. A cluster adds rolling upgrades and scheduling, and it also makes cluster hardening and control plane backups part of the MLflow scope. Choose the platform your on-call staff already run, because they will carry the upgrades and the recovery steps after launch.

How the deployment answer changes by team size, platform and data sensitivity

A single data science team that wants a shared tracking UI usually starts with pip install mlflow and mlflow server --port 5000. The self-hosting docs describe this route as suited to personal use or small teams. The default backend store is SQLite, which has been the default since MLflow 3.7.0, so the first deployment needs no database server. Docker Compose is the next step on the same host, because the repository project starts MLflow, PostgreSQL and RustFS together with docker compose up -d.

  • Database: Start with SQLite for a trial, and move to PostgreSQL once several people log runs at the same time. The docs position PostgreSQL as the suggested choice for scaling up.
  • Backups: Back up the database file and the artifact directory on a schedule, and test a restore on a second machine.
  • Storage: Keep the artifact path on a disk with room for model files, and plan a move to object storage such as Amazon S3 if artifacts grow.
  • Network: Bind the server to an internal interface and restrict port 5000 with host firewall rules, because authentication is a separate setup you must add.

Confirm with MLflow which Compose images and tags you should pin before you run the project in any shared environment.

Where self-hosted MLflow leaves work to your team

Running the tracking server yourself moves several duties that a managed service would carry onto your team. The six gaps below cover redundancy, monitoring, identity, Helm chart review, server flags and installation behavior, and each one names the control to put in place before production use.

High availability and upgrades

Databricks sells managed MLflow with high availability and automated updates, so those duties sit with the vendor there. On your own servers, the tracking server, backend database and artifact store have no redundancy unless you design it, and upgrades happen only when your team runs them. Write a runbook that covers failover and rollback for each component, a backup and restore test, and the upgrade steps for each minor release. Releases have arrived roughly monthly, so plan a recurring maintenance window.

Databricks managed MLflow

Production server monitoring

The open-source package does not include production monitoring for the tracking server, so nothing alerts you when the UI or REST APIs stop answering. Databricks includes production monitoring in its managed offering, which leaves this gap with your team in a self-hosted setup. Add health checks and alerts on the tracking server endpoint, the database connection and free disk space for the artifact store, and route alerts to an on-call rotation. Confirm which metrics your existing monitoring stack can collect before you pick tools.

Community OIDC plugin ownership

The mlflow-oidc-auth plugin is maintained by the community, so fixes, releases and security review depend on that project's activity. Your team owns the decision to adopt it, the pinned version and the review of every upgrade. The documented alternative is a reverse proxy such as oauth2-proxy in front of the tracking server, which moves login outside MLflow. Compare both options before you commit, and record who reviews plugin changes and how quickly security fixes reach you.

MLflow SSO docs

Third-party Helm chart review

MLflow's docs describe an official Helm chart for Kubernetes and also list a third-party chart on Artifact Hub. A third-party chart brings its own defaults, image sources and maintenance schedule, so review it as code before install. Check the image references, how secrets are passed in, the database and artifact store settings, and the chart version you pin. Start from the official chart unless your review shows a clear reason to choose the other one.

MLflow self-hosting docs

Host and CORS flag limits

The allowed-hosts and CORS flags protect the server only when it runs on the default FastAPI (uvicorn) server. Under gunicorn or waitress, those flags do nothing, so a team can assume protection is on when it is off. Verify the launcher in your deployment manifest and test a request from a disallowed host and origin after each change. Put a reverse proxy in front of the server to enforce host and origin rules, so the check does not depend on the launcher.

MLflow self-hosting docs

Air-gapped installs and telemetry

An air-gapped install depends on what the server reaches over the network at runtime, and that behavior should be confirmed, not assumed. Ask the vendor to confirm in writing which network endpoints the server and UI contact, whether any usage or telemetry data leaves the network, and how to switch it off. Also confirm that the packages, container images and Helm chart can be mirrored into your offline registry. File the answers with your change records before the build starts.

Order of work to take self-hosted MLflow from a test host to production

This sequence takes a self-hosted MLflow tracking server from a test host to a production service that your teams can reach with known authentication, data stores, backups and release controls. Each step ends with a check you can record before moving on. Order matters because authentication and storage choices are hard to change once teams have logged runs.

  1. Confirm the target environment and license

    Record where the server will run (a cloud account, a data center or an air-gapped network), who owns the hosts and which networks must reach it. Confirm the license position with legal or procurement: the MLflow repository and PyPI package are both under the Apache License 2.0, copyright Databricks, Inc., so check that your policies accept that license for the stack. You are done when a written environment note and license review are approved by your security and architecture owners.

  2. Build a test reference on one route

    Pick one route: pip with the mlflow server command, which the docs suggest for personal use or small teams, the repository's Docker Compose project, which provisions MLflow, PostgreSQL and RustFS, or the official Helm chart for Kubernetes. Build it in a test environment that mirrors your network zones, and review the Compose project and any third-party chart before you adapt them for production. You are done when a client logs a test run to the server and the team records which route and version it used.

  3. Provision the database and artifact storage

    Choose a backend database from PostgreSQL, MySQL, SQLite or MSSQL, the options the architecture documentation lists. SQLite is the default since MLflow 3.7.0, and the self-hosting docs suggest PostgreSQL for scaling up, so plan for PostgreSQL on a shared server. The backend store holds experiment, run and trace metadata through SQLAlchemy. Provision object storage such as Amazon S3 for the artifact store, which holds large files such as model weights, with its own credentials. You are done when the server starts against the database, a test artifact uploads and reads back, and the storage owner confirms encryption and access policy.

  4. Set server process and network exposure

    Run the tracking server under a process manager, bind it to the internal interface and place a TLS-terminating reverse proxy in front of it. Set the host and port in the service definition so they survive restarts. The allowed-hosts and CORS flags work only with the default FastAPI (uvicorn) server, so if you choose another server option, you need a different control for those protections. Confirm which server process you run before you rely on them. You are done when a client on an approved network reaches the intended endpoint and a request from an unlisted host is refused.

  5. Add authentication and access controls

    Turn on authentication before any team uses the server, since basic auth applies only to a remote tracking server and is enabled after installing mlflow[auth]. Choose between built-in basic auth, which keeps users and permissions in a database set by database_uri in basic_auth.ini or MLFLOW_AUTH_CONFIG_PATH, and an external identity provider through the mlflow-oidc-auth plugin, which the docs describe as community-maintained, or a reverse proxy such as oauth2-proxy. Follow the SSO and RBAC pages for the detailed settings. You are done when an unauthenticated request is refused, and a test user sees only the experiments they are granted.

  6. Configure and test backups and restores

    Schedule backups of the backend database and the artifact bucket on the same cycle, because run metadata points to artifact locations and a restore of only one leaves broken references. Set retention and an off-host copy under your backup policy. Then restore into a separate host, start the MLflow server against the restored database and open a restored run and its artifact. You are done when the restored metadata and files match the source and the restore steps are written into the runbook.

  7. Pin the release and set an upgrade procedure

    Pin the mlflow package to an exact version in your deployment files, and pin the chart or image tag so it matches. As of December 2026 the latest release on the GitHub releases page is 3.18.0, and the mlflow package on PyPI requires Python 3.10 or later, so confirm your server and client environments meet that. Minor releases arrive roughly monthly, so set a review cadence and a staging upgrade before each production change. You are done when the pinned versions in version control match the running server and the upgrade steps, including a database backup before migration, are written down.

  8. Run a documented cutover to production

    Freeze changes, confirm the final backup and restore test are current, and point production client configuration at the new tracking URI. Have a test client on each approved network log a run, then check that clients reach only the intended endpoint. Close writes on the old test host or remove its DNS record once the cutover is verified. Keep the rollback steps and a named owner for each step in the cutover record. You are done when the record is signed off, each team's client logs to the production endpoint, and the test host accepts no writes.

What a security reviewer asks to see for a self-hosted MLflow server

This table lists the evidence a security reviewer usually requests for a self-hosted MLflow server, what each item shows and where your team collects it. Read it as a checklist: the platform documentation supplies some items, while your deployment records, configuration and restore tests supply the rest. The main takeaway is that a reviewer can verify deployment and authentication choices only when each one is written down with its source.

Evidence itemWhat it showsWhere it comes from
Architecture and data locationThree components: a FastAPI tracking server, a SQL backend store and an artifact store for large filesThe MLflow architecture overview, plus your diagram of the database and bucket locations
LicenseApache License 2.0 in the repository license file, with the 2018 Databricks, Inc. copyright noticeThe MLflow GitHub repository and the license metadata on the mlflow PyPI package
Deployment sourceWhich route you run: Compose project, official Helm chart or a third-party chart, with its pinned versionYour Compose file or Helm values, and the chart or repository tag you pinned
Version recordThe exact mlflow package version and Python runtime in use, checked against release notes for fixesYour lockfile or image tag, the mlflow page on PyPI (Python 3.10 or later) and the GitHub releases page
Server exposureProcess type, host and CORS flags, and whether an ingress or reverse proxy sits in front of the serverThe mlflow server command in your deployment, and your ingress manifest in the cluster
Authentication configurationBasic auth or SSO is enabled, with users and permissions stored in the auth databaseYour basic_auth.ini or MLFLOW_AUTH_CONFIG_PATH file, or your SSO plugin or proxy settings. See the MLflow SSO and RBAC pages.
Backup and restore evidenceRestore tests for the backend database and artifact store, run and recorded by your teamYour backup job logs and restore test records, kept in your own environment

What buyers ask before approving a self-hosted MLflow server

Does self-hosting MLflow have a license fee?

The open-source MLflow server carries no license fee. It is licensed under the Apache License 2.0, so you can run it without paying for the software itself. The main cost is everything around it: compute for the tracking server, a database you operate, object storage for artifacts, backups, network capacity, and the staff time to deploy, secure, back up and upgrade it. Infrastructure and staff costs recur for as long as the server runs, while much of the initial deployment effort is one-time. Effort rises with the number of teams, the uptime you need and the number of integrations. If you want a managed service instead, the pricing page covers those options. In a quote, ask which infrastructure you will pay for directly, the hours assumed for each phase, and which items are one-time and which recur.

How long does it take to deploy a self-hosted MLflow server?

The duration depends on the route you choose, the database, the network approvals and the access design, so ask for a schedule built from those inputs. A pip install or Docker Compose trial moves quickly, while a Helm deployment on Kubernetes depends on a cluster, ingress, storage classes and a database that your platform team already runs or has approved. The slowest items are usually outside the MLflow work itself: approvals for connections to the database, object storage and identity systems, change windows, and the security review of the storage you pick. Access design also matters, because deciding which networks can reach the tracking server changes the firewall and load balancer work. In a written scope, ask for milestones, the approvals you must obtain and by when, the environments included (test and production), the acceptance criteria, and when your team's people are needed.

What must our team run itself after a self-hosted MLflow install?

Your team can run a pip install or a Docker Compose trial and use a small server for one team's experiments without outside help. Production is different in kind. It needs a named owner for host and network hardening, scheduled backups of the database and artifact store, restores that have been tested, upgrades, monitoring and access changes. These tasks recur for as long as the server runs. Before the server carries work from more than one team, decide who is on call, who approves changes and who can restore data. Login and permissions are covered on separate pages, so plan for them as their own work. Ask any implementation partner for a written split of responsibilities: which tasks they perform, which tasks your team keeps, and how the handover works.

Which database should we use for a self-hosted MLflow server?

SQLite is the default backend store since MLflow 3.7.0, which makes it suitable for a trial or personal use, but PostgreSQL is the suggested choice when you scale up. The architecture documentation also lists MySQL and MSSQL as supported backends. Choose based on the database platforms your organization already operates, the backup tooling and skills your team has, and whether you need a highly available database. The backend store holds experiment, run and trace metadata, so it is the component you back up most carefully. In a written scope, ask for the database version, how the server connects to it, the backup and restore tests, and who patches the database server.

Does our data stay inside our organization with self-hosted MLflow?

Data stays in your environment when you run each component yourself. MLflow stores run and trace metadata in the backend database you operate and large files such as model weights in the artifact store you choose. The architecture documentation suggests object storage such as Amazon S3 for artifacts, and the Docker Compose project provisions its own PostgreSQL and RustFS services for trials. Confirm the design details instead of relying on defaults. Check where the tracking server runs, which storage holds artifacts, who can read the buckets and the database, how encryption at rest and in transit is configured, what gets logged and how long logs are kept, and whether any component calls services outside your network. Ask your implementation partner to document these data flows so your security reviewers can check them.

How often do MLflow upgrades arrive and how should we schedule them?

Minor releases have arrived roughly monthly, so upgrades need a standing schedule and a named owner. The GitHub releases page shows 3.17.0 published on 7 October and 3.18.0 on 4 November as the latest release at the time of writing. Each upgrade should be tested in a non-production environment restored from a copy of your database, with the release notes read for database migration steps, a rollback plan and an agreed change window. Effort grows with the number of custom plugins, integrations and teams that depend on the server. In a written scope, ask for the upgrade cadence, who performs the testing, how rollback is verified, and how security fixes are handled between minor releases.

Can DeployOpen deploy and harden a self-hosted MLflow server in our infrastructure?

Yes. DeployOpen plans, implements, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For MLflow, that work covers the tracking server, the backend database, artifact storage, backups and the upgrade process. Most engagements are fixed-scope, and the scope, deliverables and timelines are agreed in writing before work starts. Login, SSO and permissions need their own scope because this topic covers deployment only. Ongoing support, upgrades and continuous testing are available as retainers. DeployOpen does not publish a price list, and a quote follows from the written scope. To get one, describe your environments, the number of teams, the database you plan to use, and your network and approval constraints.

How DeployOpen deploys and supports self-hosted MLflow in your infrastructure

DeployOpen plans, implements, hardens, backs up, upgrades, documents and supports self-hosted open-source platforms inside your own cloud accounts, data centers or air-gapped networks. For MLflow, that means turning a tracking server, backend database and artifact store into a deployment your security and platform teams can review. Engagements are fixed-scope, with the scope agreed in writing before work starts.

How we scope

  • The written scope names the target: Docker Compose, pip, Helm on Kubernetes, or on-premise servers.
  • Scope records the backend database (PostgreSQL, MySQL, SQLite or MSSQL) and why it fits your team's size.
  • Scope agreed in writing covers deliverables and timelines; ongoing support is available as a retainer.

How we build

  • Build the tracking server, backend database and artifact store as separate, documented components in your infrastructure.
  • Set up the Compose stack, the official Helm chart or a pip-installed server, depending on the agreed platform.
  • Point the artifact store at object storage in your account, and test large model uploads before handover.

How we hand over

  • Handover documentation covers installation, configuration, backup and restore steps, and the upgrade procedure for your team.
  • Run restore tests on the backend database and artifact store, with results recorded in the handover pack.
  • Compliance evidence, such as configuration records, is prepared for your assessors; independent auditors issue any reports.

How we support

  • Retainers can cover upgrades that follow MLflow's roughly monthly minor releases, tested before rollout.
  • Continuous testing and ongoing operations support are available under a retainer, with scope agreed in writing.
  • Upgrade planning checks the server version, Python requirement and database version before each change.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.