-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 1.43 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (41 loc) · 1.43 KB
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
34
35
36
37
38
39
40
41
42
43
44
version: "3.9"
services:
# ── MLflow tracking server ────────────────────────────────────────────────
mlflow:
image: python:3.9-slim
container_name: mlflow-server
working_dir: /mlflow
volumes:
- mlflow_data:/mlflow
ports:
- "5000:5000"
command: >
bash -c "pip install mlflow boto3 --quiet &&
mlflow server
--backend-store-uri sqlite:///mlflow.db
--default-artifact-root /mlflow/artifacts
--host 0.0.0.0
--port 5000"
healthcheck:
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/health')"]
interval: 15s
timeout: 5s
retries: 5
# ── Churn API ─────────────────────────────────────────────────────────────
api:
build: .
container_name: churn-api
ports:
- "8000:8000"
environment:
- MLFLOW_TRACKING_URI=http://mlflow:5000
- MLFLOW_EXPERIMENT_NAME=churn-prediction
- MODEL_NAME=telco_linear
- LOG_LEVEL=INFO
depends_on:
mlflow:
condition: service_healthy
volumes:
- ./models:/app/models:ro # mount local model artifacts read-only
volumes:
mlflow_data: