From 8064b3ba057a43dc70567a21c5150b0e28d96b80 Mon Sep 17 00:00:00 2001 From: lmojzis Date: Sat, 31 Dec 2022 05:31:28 +0100 Subject: [PATCH] Revert deletion --- docs/docs/configuration/hardware_acceleration.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/docs/configuration/hardware_acceleration.md b/docs/docs/configuration/hardware_acceleration.md index f68498f57..85a618cf3 100644 --- a/docs/docs/configuration/hardware_acceleration.md +++ b/docs/docs/configuration/hardware_acceleration.md @@ -58,6 +58,14 @@ services: frigate: ... image: blakeblackshear/frigate:stable + deploy: # <------------- Add this section + resources: + reservations: + devices: + - driver: nvidia + device_ids: ['0'] # this is only needed when using multiple GPUs + count: 1 # number of GPUs + capabilities: [gpu] environment: NVIDIA_VISIBLE_DEVICES: all # add this variable as well (or adjust it as needed when you have multiple GPUs) NVIDIA_DRIVER_CAPABILITIES: compute,utility,video # probably not needed