-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
92 lines (85 loc) · 2.31 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
services:
edge_db:
image: mongo:5.0.2
container_name: edge_db
ports:
- 27017:27017
profiles: [edge]
edge_model_serving:
container_name: edge_model_serving
build:
context: edge_model_serving
dockerfile: tflite_serving/Dockerfile
environment:
- TF_CPP_MIN_VLOG_LEVEL=0
ports:
- 8501:8501
profiles: [edge]
# volumes:
# - ./edge_model_serving/models:/models
edge_orchestrator:
container_name: edge_orchestrator
build:
context: edge_orchestrator
dockerfile: Dockerfile
volumes:
- ./edge_orchestrator/data:/edge_orchestrator/data
- ./edge_orchestrator/config:/edge_orchestrator/config
- ./edge_orchestrator/emissions:/edge_orchestrator/emissions
ports:
- 8000:8000
environment:
EDGE_NAME: vio-edge-1
API_CONFIG: docker
SERVING_MODEL_URL: http://edge_model_serving:8501
MONGO_DB_URI: mongodb://edge_db:27017/
POSTGRES_DB_URI: postgresql://vio:vio@hub_monitoring_db:5432/vio
profiles: [edge]
hub_labelizer:
container_name: hub_labelizer
build:
context: hub_labelizer
dockerfile: Dockerfile
volumes:
- ./edge_orchestrator/data:/edge_orchestrator/data
ports:
- 8100:8100
environment:
API_CONFIG: docker
EDGE_ORCHESTRATOR_URL: http://edge_orchestrator:8000
profiles: [hub]
edge_interface:
container_name: edge_interface
build:
context: edge_interface
dockerfile: Dockerfile
ports:
- 8080:80
profiles: [edge]
hub_monitoring:
container_name: hub_monitoring
image: grafana/grafana:latest
ports:
- 4000:3000
environment:
- GF_INSTALL_PLUGINS=yesoreyeram-infinity-datasource
volumes:
- ./hub_monitoring/grafana/dashboards:/var/lib/grafana/dashboards
- ./hub_monitoring/grafana/provisioning:/etc/grafana/provisioning
profiles: [hub]
hub_monitoring_db:
container_name: hub_monitoring_db
image: postgres:15.1
restart: always
environment:
POSTGRES_DB: vio
POSTGRES_USER: vio
POSTGRES_PASSWORD: vio
ports:
- 5432:5432
volumes:
- vio-postgresql-data:/var/lib/postgresql/data
- ./hub_monitoring/docker/init-db.sh:/docker-entrypoint-initdb.d/init-db.sh
profiles: [hub]
volumes:
vio-postgresql-data: