-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
48 lines (46 loc) · 1.12 KB
/
Copy pathcompose.yaml
File metadata and controls
48 lines (46 loc) · 1.12 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
45
46
47
48
services:
mlflow:
image: mlops-cpu
command: >
mlflow server
--host 0.0.0.0
--port 5000
--backend-store-uri /workspace/data/mlruns
--default-artifact-root /workspace/data/mlartifacts
working_dir: /workspace
volumes:
- .:/workspace
ports:
- "5000:5000"
api:
image: mlops-cpu
command: >
python -m deployment.serve_model
--model_path /workspace/data/reports/best_model.pt
--prediction_log /workspace/data/prediction_log.csv
--host 0.0.0.0
--port 8000
working_dir: /workspace
environment:
PYTHONPATH: /workspace/src
volumes:
- .:/workspace
ports:
- "8000:8000"
depends_on:
- mlflow
monitoring-job:
image: mlops-cpu
command: >
python -m operations.monitoring_job
--config /workspace/configs/monitoring_job.example.json
--interval_seconds 86400
--max_runs 1
--history_json /workspace/data/monitoring_job_history.json
working_dir: /workspace
environment:
PYTHONPATH: /workspace/src
volumes:
- .:/workspace
depends_on:
- mlflow