Deploy MLflow

MLflow 3.18 tracking server with login, Postgres and artifact storage.

Deploy MLflow

/mlartifacts

/var/lib/postgresql/data

Deploy and Host MLflow on Railway

MLflow is the open-source platform for the machine learning and generative AI lifecycle. It tracks experiments, parameters, metrics and artifacts, keeps versioned models in a registry, and traces and evaluates LLM and agent applications. Python, R, Java and TypeScript clients log to one shared tracking server that the whole team can browse.

About Hosting MLflow

This template runs the MLflow 3.18.0 tracking server, built from a small GitHub repo on top of the official image, with Railway Postgres for runs and the model registry. Artifacts such as models and plots are stored on a Railway volume and served through the server, so clients need no cloud storage credentials. MLflow's built-in login is on: the admin password is generated, and new users get read access by default. The server accepts your Railway domain and private network clients. Two workers and no background job runners keep idle memory near 0.7 GB. Artifacts can grow quickly, so watch the volume, and back up Postgres before updates.

Common Use Cases

  • Tracking experiments and comparing training runs across a team
  • A model registry for versioning and promoting models
  • Tracing and evaluating LLM and agent applications

Dependencies for MLflow Hosting

  • MLflow 3.18.0 (official ghcr.io/mlflow/mlflow full image, built from aalfath/mlflow-railway-template)
  • Railway Postgres with a volume, and a Railway volume at /mlartifacts for artifacts and the auth database

Deployment Dependencies

Implementation Details

Log in at your Railway domain as admin with the generated MLFLOW_ADMIN_PASSWORD (see the mlflow service's variables). Clients use the same credentials:

import os, mlflow
os.environ["MLFLOW_TRACKING_USERNAME"] = "admin"
os.environ["MLFLOW_TRACKING_PASSWORD"] = "YOUR-ADMIN-PASSWORD"
mlflow.set_tracking_uri("https://YOUR-DOMAIN")
with mlflow.start_run():
    mlflow.log_metric("accuracy", 0.93)
  • Inside the same Railway project, use http://mlflow.railway.internal:5000 instead.
  • The admin password is applied only when the auth database is first created; change it later in the MLflow UI.
  • Optional variables: MLFLOW_SERVER_ENABLE_JOB_EXECUTION=true turns on background jobs such as online LLM-judge scoring and issue detection (about 2 GB more RAM); MLFLOW_WORKERS sets the worker count; MLFLOW_EXTRA_ALLOWED_HOSTS and MLFLOW_EXTRA_CORS_ORIGINS add a custom domain.
  • Updates arrive as Railway update notices from the template repo; its CHANGELOG.md lists what changed.

This is a community-maintained deployment package and does not imply affiliation with or endorsement by the MLflow project or its maintainers.

Why Deploy MLflow on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying MLflow on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


Template Content

More templates in this category

View Template
Chat Chat
Chat Chat, your own unified chat and search to AI platform.

okisdev
117
View Template
Weaviate
Vector database with hybrid search and an API key-protected API

GitHub Locker
1
View Template
Möbius Personal AI OS
Self-hosted AI agent that builds and runs apps for you, with memory.

Tracklayer
1