|
@@ -9,8 +9,8 @@ services:
|
|
hostname: rpi-cadvisor
|
|
hostname: rpi-cadvisor
|
|
image: braingamer/cadvisor-arm:latest
|
|
image: braingamer/cadvisor-arm:latest
|
|
ipc: shareable
|
|
ipc: shareable
|
|
-# networks:
|
|
|
|
-# - rpimonitor_default
|
|
|
|
|
|
+ networks:
|
|
|
|
+ - rpimonitor_default
|
|
privileged: true
|
|
privileged: true
|
|
restart: unless-stopped
|
|
restart: unless-stopped
|
|
security_opt:
|
|
security_opt:
|
|
@@ -33,8 +33,8 @@ services:
|
|
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
|
|
- GF_PATHS_PROVISIONING=/etc/grafana/provisioning
|
|
hostname: rpi-grafana
|
|
hostname: rpi-grafana
|
|
image: grafana/grafana:latest
|
|
image: grafana/grafana:latest
|
|
-# networks:
|
|
|
|
-# - rpimonitor_default
|
|
|
|
|
|
+ networks:
|
|
|
|
+ - rpimonitor_default
|
|
ports:
|
|
ports:
|
|
- 3000:3000
|
|
- 3000:3000
|
|
restart: unless-stopped
|
|
restart: unless-stopped
|
|
@@ -50,8 +50,8 @@ services:
|
|
- 9100
|
|
- 9100
|
|
hostname: rpi-exporter
|
|
hostname: rpi-exporter
|
|
image: prom/node-exporter:latest
|
|
image: prom/node-exporter:latest
|
|
-# networks:
|
|
|
|
-# - rpimonitor_default
|
|
|
|
|
|
+ networks:
|
|
|
|
+ - rpimonitor_default
|
|
restart: unless-stopped
|
|
restart: unless-stopped
|
|
|
|
|
|
prometheus:
|
|
prometheus:
|
|
@@ -63,8 +63,8 @@ services:
|
|
- 9090
|
|
- 9090
|
|
hostname: rpi-prom
|
|
hostname: rpi-prom
|
|
image: prom/prometheus:latest
|
|
image: prom/prometheus:latest
|
|
-# networks:
|
|
|
|
-# - rpimonitor_default
|
|
|
|
|
|
+ networks:
|
|
|
|
+ - rpimonitor_default
|
|
restart: unless-stopped
|
|
restart: unless-stopped
|
|
volumes:
|
|
volumes:
|
|
# to be modified depending on your needs
|
|
# to be modified depending on your needs
|
|
@@ -74,6 +74,7 @@ services:
|
|
- cadvisor:cadvisor
|
|
- cadvisor:cadvisor
|
|
- node-exporter:node-exporter
|
|
- node-exporter:node-exporter
|
|
|
|
|
|
-#networks:
|
|
|
|
-# rpimonitor_default:
|
|
|
|
-# external: true
|
|
|
|
|
|
+networks:
|
|
|
|
+ rpimonitor_default:
|
|
|
|
+ external: true
|
|
|
|
+ name: bridge
|