-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
49 lines (44 loc) · 990 Bytes
/
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
version: '3'
services:
spark-train-2:
container_name: spark-train-2
build:
context: ./train
dockerfile: Dockerfile.train
volumes:
- ./shared/model:/app/model
environment:
- SPARK_MODE=TRAIN
ports:
- "4040:4040"
api:
container_name: spark-app
build:
context: ./api
dockerfile: Dockerfile.api
environment:
- SPARK_HOME=/usr/local/spark
- MODEL_PATH=/shared/model
- FLASK_APP= api.py
- FLASK_ENV= development
- PROMETHEUS_URL= "http://prometheus:9090"
ports:
- "5000:5000"
volumes:
- ./shared/model:/app/model
depends_on:
- prometheus
prometheus:
image: prom/prometheus
ports:
- "9090:9090"
volumes:
- ./prometheus:/etc/prometheus
grafana:
image: grafana/grafana
ports:
- "3000:3000"
environment:
GF_SECURITY_ADMIN_PASSWORD: admin
volumes:
- ./grafana:/var/lib/grafana