Simple approach to having an ml-flow server docker image.
3.9K
Simple Docker image for running an MLflow Tracking Server with:
Source code: keanrawr/mlflow-server
Image tags match the pinned MLflow version used inside the image.
Example:
3.10.13.10.1Pull the latest published version explicitly:
docker pull keanrawr/mlflow-server:3.10.1
On startup, the container:
mlflow db upgradeThis keeps the tracking database schema up to date when deploying a new image version.
The container expects these variables when running the default server command:
BACKEND_URIARTIFACTS_DESTINATIONTypical optional settings:
MLFLOW_HOST default: 0.0.0.0MLFLOW_PORT default: 5000For S3-compatible artifact storage, you will usually also provide:
AWS_ACCESS_KEY_IDAWS_SECRET_ACCESS_KEYservices:
db:
restart: unless-stopped
image: postgres:15
healthcheck:
test: ["CMD-SHELL", "pg_isready -U $$POSTGRES_USER -d $$POSTGRES_DB"]
interval: 5s
timeout: 5s
retries: 10
environment:
- POSTGRES_USER=${POSTGRES_USER}
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=${POSTGRES_DB}
volumes:
- dbdata:/var/lib/postgresql/data
mlflow:
restart: unless-stopped
image: keanrawr/mlflow-server:3.10.1
depends_on:
db:
condition: service_healthy
ports:
- "5000:5000"
environment:
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- BACKEND_URI=postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@db:5432/${POSTGRES_DB}
- ARTIFACTS_DESTINATION=${S3_ROOT}
volumes:
dbdata:
Content type
Image
Digest
sha256:d1cbc3726…
Size
299.1 MB
Last updated
6 days ago
docker pull keanrawr/mlflow-server