Add GPU-enabled build target in dockerfile_Agent (nvidia-smi support) (#898)

This commit is contained in:
dalton-baker
2025-08-03 11:31:26 -06:00
committed by GitHub
parent 8af3a0eb5b
commit 99c7f7bd8a
4 changed files with 40 additions and 7 deletions

View File

@@ -11,13 +11,16 @@ services:
- 'host.docker.internal:host-gateway'
beszel-agent:
image: 'henrygd/beszel-agent'
image: 'henrygd/beszel-agent' #Add -nvidia for nvidia gpus
container_name: 'beszel-agent'
restart: unless-stopped
network_mode: host
# runtime: nvidia # when using beszel-agent-nvidia
volumes:
- /var/run/docker.sock:/var/run/docker.sock:ro
environment:
PORT: 45876
KEY: '...'
# FILESYSTEM: /dev/sda1 # set to the correct filesystem for disk I/O stats
# NVIDIA_VISIBLE_DEVICES: all # when using beszel-agent-nvidia
# NVIDIA_DRIVER_CAPABILITIES: utility # when using beszel-agent-nvidia