-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (48 loc) · 1.23 KB
/
docker-compose.yml
File metadata and controls
53 lines (48 loc) · 1.23 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
49
50
51
52
53
version: "3.9"
services:
fastapi:
build:
context: .
dockerfile: Dockerfile
ports:
- "8000:8000"
volumes:
- ./mlruns:/app/mlruns
- ./mlflow.db:/app/mlflow.db
- ./data/predictions:/app/data/predictions
depends_on:
- mlflow
environment:
- MLFLOW_TRACKING_URI=http://mlflow:5000
mlflow:
image: ghcr.io/mlflow/mlflow:v2.22.0 # Replace with your local version
ports:
- "5000:5000"
volumes:
- ./mlflow.db:/mlflow/mlflow.db
- ./mlruns:/mlflow/mlruns
command: >
mlflow server
--backend-store-uri sqlite:///mlflow/mlflow.db
--default-artifact-root /mlflow/mlruns
--host 0.0.0.0
--port 5000
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- ./src/config/prometheus.yml:/etc/prometheus/prometheus.yml
- ./prometheus/alerts.yml:/etc/prometheus/alerts.yml
grafana:
image: grafana/grafana
ports:
- "3000:3000"
environment:
- GF_SECURITY_ADMIN_PASSWORD=admin
volumes:
- grafana-storage:/var/lib/grafana
- ./grafana/provisioning:/etc/grafana/provisioning
- ./grafana/dashboards:/var/lib/grafana/dashboards
volumes:
grafana-storage: