Skip to content

Commit 1085748

Browse files
committed
feat: update node config
1 parent a92bbe4 commit 1085748

File tree

1 file changed

+8
-13
lines changed

1 file changed

+8
-13
lines changed

docker-compose.node.yml

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,13 @@ services:
1313
nvidia_gpu_exporter:
1414
image: utkuozdemir/nvidia_gpu_exporter:1.1.0
1515
container_name: nvidia_gpu_exporter
16-
devices:
17-
- /dev/nvidiactl:/dev/nvidiactl
18-
- /dev/nvidia0:/dev/nvidia0
19-
20-
command:
21-
- '--path.rootfs=/host'
22-
network_mode: host
23-
pid: host
16+
deploy:
17+
resources:
18+
reservations:
19+
devices:
20+
- driver: nvidia
21+
count: 1
22+
capabilities: [gpu]
2423
restart: always
2524
ports:
26-
- 9835:9835
27-
volumes:
28-
- /usr/lib/x86_64-linux-gnu/libnvidia-ml.so:/usr/lib/x86_64-linux-gnu/libnvidia-ml.so
29-
- /usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1:/usr/lib/x86_64-linux-gnu/libnvidia-ml.so.1
30-
- /usr/bin/nvidia-smi:/usr/bin/nvidia-smi
25+
- 9835:9835

0 commit comments

Comments
 (0)