-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (31 loc) · 793 Bytes
/
docker-compose.yml
File metadata and controls
33 lines (31 loc) · 793 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
services:
mlflow:
image: ghcr.io/mlflow/mlflow:latest
container_name: mlflow-server
ports:
- "5050:5000"
command: >
sh -c "mkdir -p /mlflow_artifacts && mlflow server
--host 0.0.0.0
--port 5000
--backend-store-uri sqlite:////mlflow/mlflow.db
--default-artifact-root file:/mlflow_artifacts"
volumes:
- mlflow_db:/mlflow
- mlflow_artifacts:/mlflow_artifacts
inference:
build:
context: .
dockerfile: docker/inference.Dockerfile
container_name: inference-api
ports:
- "8000:8000"
environment:
- MLFLOW_TRACKING_URI=http://mlflow:5000
- MODEL_NAME=mini-mlops-platform-model
- MODEL_STAGE=production
depends_on:
- mlflow
volumes:
mlflow_db:
mlflow_artifacts: