This repository has been archived by the owner on Aug 1, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
106 lines (97 loc) · 2.14 KB
/
docker-compose.yml
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
version: '3.7'
volumes:
model_data: {}
prometheus_data: {}
grafana_data: {}
networks:
front-tier:
back-tier:
services:
create_insurance_model:
build:
context: .
dockerfile: Dockerfile.model
volumes:
- model_data:/model
environment:
DATASET_PATH: ../data/reference.csv
CREATE_MODEL_AT_PATH: ../model/classifier
app:
build:
context: .
dockerfile: Dockerfile.app
ports:
- "8080:5000"
depends_on:
create_insurance_model:
condition: service_completed_successfully
volumes:
- model_data:/model
environment:
MODEL_PATH: ../model/classifier
notebook:
build:
context: .
dockerfile: Dockerfile.notebook
ports:
- "8888:8888"
- "8889:8889"
volumes:
- ./:/data
- model_data:/model
environment:
MODEL_PATH: ../model/classifier
networks:
- front-tier
evidently_service:
build:
context: .
dockerfile: Dockerfile.metric
depends_on:
- grafana
volumes:
- ./datasets:/app/datasets
ports:
- "8085:8085"
networks:
- back-tier
- front-tier
prometheus:
image: prom/prometheus
volumes:
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
- prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
ports:
- "9090:9090"
networks:
- back-tier
restart: always
grafana:
image: grafana/grafana
user: "472"
depends_on:
- prometheus
ports:
- "3000:3000"
volumes:
- ./config/grafana_datasources.yaml:/etc/grafana/provisioning/datasources/datasource.yaml:ro
- ./config/grafana_dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml:ro
- ./dashboards:/opt/grafana/dashboards
- grafana_data:/var/lib/grafana
networks:
- back-tier
- front-tier
restart: always
httpserver:
image: trinitronx/python-simplehttpserver
volumes:
- ./app/:/var/www:ro
ports:
- "8000:8080"
networks:
- front-tier
depends_on:
- app