
Deploy MLflow
MLflow 3.18 tracking server with login, Postgres and artifact storage.
Just deployed
/mlartifacts
Just deployed
/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/mlflowfull image, built fromaalfath/mlflow-railway-template) - Railway Postgres with a volume, and a Railway volume at
/mlartifactsfor 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:5000instead. - 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=trueturns on background jobs such as online LLM-judge scoring and issue detection (about 2 GB more RAM);MLFLOW_WORKERSsets the worker count;MLFLOW_EXTRA_ALLOWED_HOSTSandMLFLOW_EXTRA_CORS_ORIGINSadd a custom domain. - Updates arrive as Railway update notices from the template repo; its
CHANGELOG.mdlists 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

