Install with Docker Compose

Run the full platform on your own server with the production compose file.

mlflow runs entirely on a server you control. One command installs the database, the job queue, the application and automatic HTTPS. Your data never leaves your infrastructure. The installer uses Docker Compose, so you do not need to write any configuration to get started.

Requirements

MinimumRecommended
Operating system64-bit Linux (Ubuntu 22.04 or later, Debian 12 or later, RHEL 9 or later, or similar)Same
CPU2 cores, x86_64 or aarch644 cores or more
Memory4 GiB8 GiB or more, because model training uses a lot of memory
Disk20 GiB free100 GiB or more, because datasets, models and backups grow
SoftwareDocker Engine 24 or later with the Compose plugin 2.20 or later, and opensslSame
NetworkPorts 80 and 443 free and reachable by your usersSame
DNSA host name, for example mlflow.example.com, that points at the serverSame

Install Docker by following the official guide for your distribution at https://docs.docker.com/engine/install/, then check that docker compose version works. The installer needs outbound internet access to download images and, for HTTPS, to reach the certificate authority. A server without internet access can use an offline bundle instead (see below).

Create the DNS record before you install. An A record (and an AAAA record if you use IPv6) for your host name must point at the server's public address. The installer warns you if the name does not resolve yet.

Get the release

You receive the installer with your license. It is a folder with install.sh, the supporting scripts and templates, and a VERSION file. It pulls the container images from a registry that is part of your license delivery: the registry address, its name space and any credentials are supplied to you. If the registry needs a login, run docker login <REGISTRY-HOST> first.

If your server cannot reach the internet, you receive an offline bundle instead: a file named mlflow-<version>-<architecture>.tar.gz and a SHA256SUMS file. The bundle contains every image. Copy both files to the server and check them:

bash
sha256sum -c SHA256SUMS --ignore-missing
tar xzf mlflow-<version>-amd64.tar.gz
cd mlflow-<version>-amd64

A bundle is built for one CPU architecture, and the installer refuses to run a bundle on the wrong one.

Configure

The installer takes its settings as options. Two are required.

OptionMeaning
--domain HOSTThe public host name of this server. Required. Give the name only, without https://.
--admin-email ADDRThe email address of the first administrator. Required.
--email ADDRContact address for certificate notices. Default: the administrator's email.
--admin-name NAMEDisplay name of the administrator. Default: Administrator.
--workspace NAMEName of the first workspace. Default: Default.
--dir PATHInstall directory, as an absolute path. Default: /opt/mlflow.
--version TAGThe release to install. Default: the value in the VERSION file.
--registry HOST/NAMESPACEWhere to pull images from.
--from-bundle FILEInstall from an offline bundle (a .tar.gz file or an extracted folder).
--non-interactiveNever ask questions, and fail if a value is missing.
--skip-checksSkip the memory, disk and port checks.
--forceAllow changing the version of an existing install.

If you leave out a required option and you run the installer in a terminal, it asks for the value. To choose the administrator's password yourself, set the environment variable MLFLOW_ADMIN_PASSWORD (at least 8 characters, without quotes or backslashes). Otherwise the installer generates a strong password.

You do not configure secrets. The installer generates the database password, the token-signing key and the encryption key, and stores them in /opt/mlflow/.env, readable only by root. The other settings are described in the configuration reference.

Start the stack

Run the installer as root, or as a user who can use Docker.

bash
sudo ./install.sh \
  --domain mlflow.example.com \
  --admin-email you@example.com \
  --registry <REGISTRY-HOST>/<NAMESPACE> \
  --version <VERSION>

From an offline bundle, leave out --registry and --version, because the bundle already knows both:

bash
sudo ./install.sh --domain mlflow.example.com --admin-email you@example.com

The installer does these things in order:

  1. It checks the server: Docker and Compose versions, openssl, memory, free disk space, that ports 80 and 443 are free, and that the domain resolves.
  2. It writes the Compose file, the Caddy file and the mlflowctl management tool to the install directory, and generates the secrets.
  3. It pulls the images (or loads them from the bundle) and starts the services: the database, the job queue, the application, a worker for training jobs, the web interface and Caddy, which handles HTTPS.
  4. It waits until the application is ready. The first start runs the database migrations, so allow a few minutes.
  5. It creates the first administrator and prints a summary.

You can run the installer again at any time. It keeps your secrets and data, refreshes the files, and never creates a second administrator. If the directory already runs another version, it stops and tells you to use mlflowctl upgrade instead.

Create the first admin

The installer creates the first administrator and the first workspace for you, using the email, name and workspace name you gave. At the end it prints a box like this:

mlflow <version> is running
  URL:       https://mlflow.example.com
  Admin:     you@example.com
  Password:  <generated password>

  This password is shown ONLY NOW and is stored nowhere.
  Sign in and change it right away.

Copy the password now

The generated password is printed once and is not stored in any file or log. Copy it from the terminal, sign in, and change it. If you set MLFLOW_ADMIN_PASSWORD, the installer prints nothing instead. If you lose the password, use Forgot password once email is configured, or contact support.

Open the URL in a browser and sign in with the email and password. The first certificate can take a minute. If the browser shows a warning or the site does not load, check that DNS points at the server and that ports 80 and 443 are open in every firewall, including your cloud provider's security groups.

The first administrator is also a platform administrator. Add the rest of your team as described in Workspace settings. Public sign-up is turned off in an installed stack, so people can only join when an administrator invites them.

Verify

Run the status command. It shows the version, the health of each service, and whether the application is ready.

bash
sudo mlflowctl status

Every service should be running or healthy, and the last line should say Application: ready. You can also check from outside the server:

bash
curl -fsS https://mlflow.example.com/healthz

If a service is unhealthy, read its logs. The services are api, worker, web, caddy, postgres, redis and migrate.

bash
sudo mlflowctl logs api --no-follow
SymptomWhat to check
The installer says port 80 or 443 is already in useAnother web server runs on this machine. Find it with sudo ss -ltnp 'sport = :80', then stop it or use another machine.
The installer cannot talk to the Docker daemonRun it with sudo, and check systemctl status docker.
The installer says the application did not become readyRun mlflowctl logs api migrate. A database problem shows up there.
The installer cannot pull imagesRun docker login <REGISTRY-HOST> and check the registry address and outbound access.
Uploads or models fail with permission errorsThe artifacts folder must belong to user ID 10001. For a bind-mounted folder, run chown -R 10001:10001 <folder>. The default Docker volume is already correct.

Day-to-day with mlflowctl

The installer adds the mlflowctl command, linked into /usr/local/bin when you install as root.

CommandWhat it does
mlflowctl statusShows the version, the container health and readiness.
mlflowctl logs [service]Follows the logs. Add --no-follow to print and exit.
mlflowctl restart [service]Restarts one service or all of them.
mlflowctl upgrade --version XTakes a backup, pulls the new version, migrates the database and restarts.
mlflowctl backupWrites the database and all artifacts into one file.
mlflowctl restore FILERestores a backup, after asking for confirmation.
mlflowctl uninstall [--purge]Removes the containers. With --purge it also deletes all data.

Back up /opt/mlflow/.env separately and copy backups to another machine. Backups, upgrades and restores are explained in Backups and upgrades.

Next steps

Updated 2026-11-22