-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
61 lines (56 loc) · 1.51 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
version: "3.8"
services:
mlflow:
build:
context: .
dockerfile: train/Dockerfile
args:
- MLFLOW_HOST=${MLFLOW_HOST}
- ARTIFACT_STORE=${ARTIFACT_STORE}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
restart: unless-stopped
container_name: mlflow
image: language_identification_mlflow
ports:
- "5000:5000"
volumes:
- ./mlruns:/opt/mlflow/mlruns
- ./input:/opt/mlflow/input
serve:
build:
context: .
dockerfile: serve/Dockerfile
args:
- ARTIFACT_STORE=${ARTIFACT_STORE}
- AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}
- AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}
- LOCAL_MODEL_STORAGE=${LOCAL_MODEL_STORAGE}
restart: unless-stopped
container_name: serve
image: language_identification_serve
ports:
- "8080:8080"
prometheus:
image: prom/prometheus:latest
restart: unless-stopped
container_name: prometheus
ports:
- "9090:9090"
volumes:
- ./monitoring/prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
grafana:
image: grafana/grafana:latest
restart: unless-stopped
user: "472"
container_name: grafana
depends_on:
- prometheus
ports:
- "3000:3000"
volumes:
- ./monitoring/datasource.yml:/etc/grafana/provisioning/datasource.yml
env_file:
- ./monitoring/config.monitoring