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
| Minimum | Recommended | |
|---|---|---|
| Operating system | 64-bit Linux (Ubuntu 22.04 or later, Debian 12 or later, RHEL 9 or later, or similar) | Same |
| CPU | 2 cores, x86_64 or aarch64 | 4 cores or more |
| Memory | 4 GiB | 8 GiB or more, because model training uses a lot of memory |
| Disk | 20 GiB free | 100 GiB or more, because datasets, models and backups grow |
| Software | Docker Engine 24 or later with the Compose plugin 2.20 or later, and openssl | Same |
| Network | Ports 80 and 443 free and reachable by your users | Same |
| DNS | A host name, for example mlflow.example.com, that points at the server | Same |
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:
sha256sum -c SHA256SUMS --ignore-missing
tar xzf mlflow-<version>-amd64.tar.gz
cd mlflow-<version>-amd64A 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.
| Option | Meaning |
|---|---|
--domain HOST | The public host name of this server. Required. Give the name only, without https://. |
--admin-email ADDR | The email address of the first administrator. Required. |
--email ADDR | Contact address for certificate notices. Default: the administrator's email. |
--admin-name NAME | Display name of the administrator. Default: Administrator. |
--workspace NAME | Name of the first workspace. Default: Default. |
--dir PATH | Install directory, as an absolute path. Default: /opt/mlflow. |
--version TAG | The release to install. Default: the value in the VERSION file. |
--registry HOST/NAMESPACE | Where to pull images from. |
--from-bundle FILE | Install from an offline bundle (a .tar.gz file or an extracted folder). |
--non-interactive | Never ask questions, and fail if a value is missing. |
--skip-checks | Skip the memory, disk and port checks. |
--force | Allow 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.
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:
sudo ./install.sh --domain mlflow.example.com --admin-email you@example.comThe installer does these things in order:
- 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. - It writes the Compose file, the Caddy file and the
mlflowctlmanagement tool to the install directory, and generates the secrets. - 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.
- It waits until the application is ready. The first start runs the database migrations, so allow a few minutes.
- 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.
sudo mlflowctl statusEvery service should be running or healthy, and the last line should say Application: ready. You can also check from outside the server:
curl -fsS https://mlflow.example.com/healthzIf a service is unhealthy, read its logs. The services are api, worker, web, caddy, postgres, redis and migrate.
sudo mlflowctl logs api --no-follow| Symptom | What to check |
|---|---|
| The installer says port 80 or 443 is already in use | Another 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 daemon | Run it with sudo, and check systemctl status docker. |
| The installer says the application did not become ready | Run mlflowctl logs api migrate. A database problem shows up there. |
| The installer cannot pull images | Run docker login <REGISTRY-HOST> and check the registry address and outbound access. |
| Uploads or models fail with permission errors | The 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.
| Command | What it does |
|---|---|
mlflowctl status | Shows 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 X | Takes a backup, pulls the new version, migrates the database and restarts. |
mlflowctl backup | Writes the database and all artifacts into one file. |
mlflowctl restore FILE | Restores 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