From f40e588e7dc1acd916c6a39ae5f734d3c7c12204 Mon Sep 17 00:00:00 2001 From: headlessdev Date: Sun, 20 Apr 2025 23:39:54 +0200 Subject: [PATCH] sample Docker Compose configuration for Glances --- app/dashboard/servers/Servers.tsx | 82 ++++++++++++++++++++++++------- 1 file changed, 63 insertions(+), 19 deletions(-) diff --git a/app/dashboard/servers/Servers.tsx b/app/dashboard/servers/Servers.tsx index 5d66b81..2cc8887 100644 --- a/app/dashboard/servers/Servers.tsx +++ b/app/dashboard/servers/Servers.tsx @@ -621,15 +621,37 @@ export default function Dashboard() { {monitoring && ( -
- - setMonitoringURL(e.target.value)} - /> -
+ <> +
+ + setMonitoringURL(e.target.value)} + /> +
+
+

Required Server Setup

+

+ To enable monitoring, you need to install Glances on your server. Here's an example Docker Compose configuration: +

+
+                                    {`services:
+  glances:
+    image: nicolargo/glances:latest
+    container_name: glances
+    restart: unless-stopped
+    ports:
+      - "61208:61208"
+    pid: "host"
+    volumes:
+      - /var/run/docker.sock:/var/run/docker.sock:ro
+    environment:
+      - GLANCES_OPT=-w --disable-webui`}
+                                  
+
+ )} @@ -1076,16 +1098,38 @@ export default function Dashboard() { {editMonitoring && ( -
- - setEditMonitoringURL(e.target.value)} - /> -
+ <> +
+ + setEditMonitoringURL(e.target.value)} + /> +
+
+

Required Server Setup

+

+ To enable monitoring, you need to install Glances on your server. Here's an example Docker Compose configuration: +

+
+                                                      {`services:
+  glances:
+    image: nicolargo/glances:latest
+    container_name: glances
+    restart: unless-stopped
+    ports:
+      - "61208:61208"
+    pid: "host"
+    volumes:
+      - /var/run/docker.sock:/var/run/docker.sock:ro
+    environment:
+      - GLANCES_OPT=-w --disable-webui`}
+                                                    
+
+ )}