-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yaml
68 lines (62 loc) · 1.37 KB
/
docker-compose.yaml
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
version: "3.9"
services:
api:
build: api
ports:
- 8086:8086
volumes:
- models:/mlruns
app:
build: app
ports:
- 8501:8501
train:
build: training
ports:
- 4200:4200
volumes:
- models:/mlruns
x-develop:
watch:
- action: sync
path: .
target: /training
prefect-db:
image: postgres:15.4-alpine
restart: always
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=yHwt6Mjo7dESruva5B4W0u8G0JBossTk
- POSTGRES_DB=prefect
ports:
- '5432:5432'
volumes:
- prefect-db:/var/lib/postgresql/data
mlflow:
build: mlflow
ports:
- 5000:5000
volumes:
- models:/mlruns
prometheus:
image: prom/prometheus:latest
ports:
- 9090:9090
volumes:
- ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- "--config.file=/etc/prometheus/prometheus.yml"
grafana:
image: grafana/grafana:latest
user: "472"
depends_on:
- prometheus
ports:
- 3000:3000
volumes:
- ./monitoring/datasource.yml:/etc/grafana/provisioning/datasources/datasource.yml
- ./monitoring/dashboard.json:/etc/grafana/provisioning/dashboards/dashboard.json
- ./monitoring/dashboard.yml:/etc/grafana/provisioning/dashboards/default.yml
volumes:
models:
prefect-db: