Add GPU monitoring support to glances

Enable NVIDIA runtime and GPU visibility for GPU performance metrics.
This commit is contained in:
2026-01-31 19:52:58 +00:00
parent 3426193bc2
commit 947f5fd348
+2
View File
@@ -6,10 +6,12 @@ services:
image: 'nicolargo/glances:latest-full' image: 'nicolargo/glances:latest-full'
restart: unless-stopped restart: unless-stopped
privileged: true privileged: true
runtime: nvidia
ports: ports:
- 61208-61209:61208-61209 - 61208-61209:61208-61209
environment: environment:
- TZ=${TZ} - TZ=${TZ}
- NVIDIA_VISIBLE_DEVICES=all
- "GLANCES_OPT=-C /glances/conf/glances.conf -w" - "GLANCES_OPT=-C /glances/conf/glances.conf -w"
volumes: volumes:
- '/var/run/docker.sock:/var/run/docker.sock:ro' - '/var/run/docker.sock:/var/run/docker.sock:ro'