-
Notifications
You must be signed in to change notification settings - Fork 11
/
docker-compose-serve.yml
180 lines (169 loc) · 4.2 KB
/
docker-compose-serve.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:
external:
driver: bridge
backend:
driver: bridge
services:
evidently_service:
container_name: evidently_service
image: evidently_service
build:
context: monitoring/evidently_service
dockerfile: Dockerfile
depends_on:
- grafana
security_opt:
- seccomp:unconfined
- label:disable
volumes:
- ./monitoring/evidently_service/datasets:/app/datasets
- ./monitoring/evidently_service/config.yaml:/app/config.yaml
ports:
- "8085:8085"
networks:
- backend
prometheus:
container_name: prometheus
image: prom/prometheus
security_opt:
- seccomp:unconfined
- label:disable
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:
- backend
restart: always
grafana:
container_name: grafana
image: grafana/grafana
user: "472"
depends_on:
- prometheus
ports:
- "3000:3000"
security_opt:
- seccomp:unconfined
- label:disable
volumes:
- ./monitoring/evidently_service/config/grafana_datasources.yaml:/etc/grafana/provisioning/datasources/datasource.yaml:ro
- ./monitoring/evidently_service/config/grafana_dashboards.yaml:/etc/grafana/provisioning/dashboards/dashboards.yaml:ro
- ./monitoring/evidently_service/dashboards:/opt/grafana/dashboards
- ./monitoring/grafana_data:/var/lib/grafana
networks:
- backend
restart: always
mongo:
container_name: mongo
image: mongo
ports:
- "27018:27017"
security_opt:
- seccomp:unconfined
- label:disable
volumes:
- ./monitoring/mongo_data:/data/db
networks:
- backend
serve-api:
container_name: serve-api
image: serve-api
restart: always
depends_on:
- prefect_server
- localstack
- mlflow_server
- agent
- evidently_service
- mongo
build:
context: ./server
dockerfile: Dockerfile-serve-api
ports:
- "9696:9696"
env_file:
- .env
environment:
EVIDENTLY_SERVICE: "http://evidently_service.:8085"
MONGODB_ADDRESS: "mongodb://mongo:27017/"
MLFLOW_ADDRESS: "http://mlflow_server:5050"
volumes:
- /tmp/mlopsdb:/tmp/mlopsdb
- /tmp/mlopsartifacts:/tmp/mlopsartifacts
- /tmp/store:/tmp/store
- /tmp/serve:/tmp/serve
networks:
- backend
- external
serve-kinesis:
container_name: serve-kinesis
image: serve-kinesis
restart: always
depends_on:
- prefect_server
- localstack
- mlflow_server
- agent
- evidently_service
- mongo
build:
context: ./server
dockerfile: Dockerfile-serve-kinesis
env_file:
- .env
environment:
MLFLOW_ADDRESS: http://mlflow_server:5050
KINESIS_ADDRESS: "http://aws:4566"
RESULTS_STREAM_NAME: results
volumes:
- /tmp/mlopsdb:/tmp/mlopsdb
- /tmp/mlopsartifacts:/tmp/mlopsartifacts
- /tmp/store:/tmp/store
- /tmp/serve:/tmp/serve
networks:
- backend
- external
send_data-api:
container_name: send_data-api
image: send_data-api
restart: always
depends_on:
- serve-api
build:
context: ./simulation_business
dockerfile: Dockerfile-send-data-api
image: "send_data-api"
container_name: "send_data-api"
environment:
SERVE_ADDRESS: http://serve-api:9696
env_file:
- .env
networks:
- external
send_data-kinesis:
container_name: send_data-kinesis
image: send_data-kinesis
restart: always
depends_on:
- serve-kinesis
build:
context: ./simulation_business
dockerfile: Dockerfile-send-data-kinesis
image: "send_data-kinesis"
container_name: "send_data-kinesis"
environment:
KINESIS_ADDRESS: http://aws:4566
env_file:
- .env
networks:
- external