generated from ks6088ts/template-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompose.yaml
54 lines (53 loc) · 1.41 KB
/
compose.yaml
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
services:
grafana:
image: grafana/grafana:11.0.0
container_name: grafana
ports:
- 3000:3000
volumes:
- grafana-data:/var/lib/grafana
- ${PWD}/configs/grafana/datasources:/etc/grafana/provisioning/datasources
- ${PWD}/configs/grafana/dashboards_settings:/etc/grafana/provisioning/dashboards
- ${PWD}/configs/grafana/dashboards:/var/lib/grafana/dashboards
restart: always
prometheus:
image: prom/prometheus:v2.52.0
ports:
- 9090:9090
volumes:
- ${PWD}/configs/prometheus:/etc/prometheus
restart: always
node-exporter:
image: prom/node-exporter:v1.8.1
container_name: node-exporter
ports:
- 9100:9100
alertmanager:
image: prom/alertmanager:v0.27.0
container_name: alertmanager
ports:
- 9093:9093
volumes:
- ${PWD}/configs/alertmanager:/etc/alertmanager
restart: always
prometheus-client:
build:
context: .
dockerfile: Dockerfile
container_name: prometheus-client
ports:
- 8000:8000
restart: always
command: python scripts/prometheus.py --num-devices 5 --port 8000
iot-edge:
build:
context: .
dockerfile: iotedge.Dockerfile
privileged: true
command: /sbin/init
environment:
- DEVICE_CONNECTION_STRING=${DEVICE_CONNECTION_STRING}
volumes:
- ${PWD}/scripts/install-iot-edge.sh:/install-iot-edge.sh
volumes:
grafana-data: