-
Notifications
You must be signed in to change notification settings - Fork 8
/
docker-compose.yml
183 lines (169 loc) · 4.81 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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
version: '3.7'
volumes:
prometheus_data: {}
grafana_data: {}
mongo_data: {}
networks:
front-tier:
driver: bridge
back-tier:
driver: bridge
services:
prediction_service:
container_name: prediction_service
image: prediction_service
build:
context: monitoring/prediction_service
dockerfile: Dockerfile
depends_on:
- evidently_service
- mongo
environment:
EVIDENTLY_SERVICE: "http://evidently_service.:8877"
MLFLOW_TRACKING_URI: "http://mlflow_server:5050"
GOOGLE_APPLICATION_CREDENTIALS: /secrets/mlops-credit-risk-secret.json
volumes:
- /Users/jakob/.secrets/mlops-credit-risk-secret.json:/secrets/mlops-credit-risk-secret.json
ports:
- "9696:9696"
networks:
- back-tier
- front-tier
evidently_service:
container_name: evidently_service
image: evidently_service
build:
context: monitoring/evidently_service
dockerfile: Dockerfile
depends_on:
- grafana
volumes:
- ./monitoring/evidently_service/datasets:/app/datasets
- ./monitoring/evidently_service/config.yaml:/app/config.yaml
ports:
- "8877:8877"
networks:
- back-tier
- front-tier
prometheus:
container_name: prometheus
image: prom/prometheus
depends_on:
- mongo
volumes:
- ./monitoring/evidently_service/config/prometheus.yml:/etc/prometheus/prometheus.yml
- ./monitoring/prometheus_data:/prometheus
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--storage.tsdb.path=/prometheus'
ports:
- "9091:9090"
networks:
- back-tier
restart: always
grafana:
container_name: grafana
image: grafana/grafana
user: "472"
depends_on:
- prometheus
ports:
- "3000:3000"
volumes:
- ./monitoring/evidently_service/config/grafana_datasources.yml:/etc/grafana/provisioning/datasources/grafana_datasources.yml:ro
- ./monitoring/evidently_service/config/grafana_dashboards.yml:/etc/grafana/provisioning/dashboards/grafana_dashboards.yml:ro
- ./monitoring/evidently_service/dashboards:/opt/grafana/dashboards
- ./monitoring/grafana_data:/var/lib/grafana
networks:
- back-tier
- front-tier
restart: always
mongo:
container_name: mongo
image: mongo
ports:
- "27018:27017"
volumes:
- ./monitoring/mongo_data:/data/db
networks:
- back-tier
mlflow_server:
restart: always
build:
context: ./model_orchestration_and_tracking
dockerfile: Dockerfile-mlflow
container_name: mlflow_server
image: mlflow_server
ports:
- 5051:5050
networks:
- back-tier
environment:
GOOGLE_APPLICATION_CREDENTIALS: /secrets/mlops-credit-risk-secret.json
volumes:
- /tmp/mlopsdb:/tmp/mlopsdb
- /tmp/mlopsartifacts:/tmp/mlopsartifacts
- /tmp/store:/tmp/store
- /Users/jakob/.secrets/mlops-credit-risk-secret.json:/secrets/mlops-credit-risk-secret.json
prefect_server:
restart: always
build:
context: ./model_orchestration_and_tracking
dockerfile: Dockerfile-prefect
logging:
driver: none
image: prefect_server
container_name: prefect_server
ports:
- 4200:4200
- 8081:8081
env_file:
- ./model_orchestration_and_tracking/.env
networks:
- back-tier
volumes:
- /tmp/mlopsdb:/tmp/mlopsdb
- /tmp/mlopsartifacts:/tmp/mlopsartifacts
- /tmp/store:/tmp/store
prefect_agent:
restart: always
depends_on:
- prefect_server
- mlflow_server
build:
context: ./model_orchestration_and_tracking
dockerfile: Dockerfile-prefect-agent
image: prefect_agent1
container_name: prefect_agent1
environment:
MONGODB_ADDRESS: "mongodb://127.0.0.1:27017"
REPORTS_FOLDER: /tmp/mlreports
REPORT_TIME_WINDOW_MINUTES: 180
EVIDENTLY_TIME_WIDTH_MINS: 720
GOOGLE_APPLICATION_CREDENTIALS: /secrets/mlops-credit-risk-secret.json
MLFLOW_TRACKING_URI: "http://mlflow_server:5050"
volumes:
- /tmp/mlopsdb:/tmp/mlopsdb
- /tmp/mlopsartifacts:/tmp/mlopsartifacts
- /tmp/store:/tmp/store
- /tmp/mlreports:/tmp/mlreports
- /Users/jakob/.secrets/mlops-credit-risk-secret.json:/secrets/mlops-credit-risk-secret.json
networks:
- back-tier
reporting:
restart: always
container_name: reporting_agent
image: reporting_agent
build:
context: ./monitoring
dockerfile: Dockerfile
depends_on:
- prefect_server
- mlflow_server
- mongo
environment:
GOOGLE_APPLICATION_CREDENTIALS: /secrets/mlops-credit-risk-secret.json
volumes:
- /Users/jakob/.secrets/mlops-credit-risk-secret.json:/secrets/mlops-credit-risk-secret.json
networks:
- back-tier