From 4bae3993daec08758b02bd24f7eceeef66aa8423 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Tue, 22 Feb 2022 07:12:11 -0600 Subject: [PATCH] update dev compose to assign groups --- docker-compose.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index 197d9e11e..d7fe2819f 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,18 +3,23 @@ services: dev: container_name: frigate-dev user: vscode - privileged: true + # add groups from host for render, plugdev, video + group_add: + - 109 # render + - 44 # video + - 46 # plugdev shm_size: "256mb" build: context: . dockerfile: docker/Dockerfile.dev + devices: + - /dev/bus/usb:/dev/bus/usb + - /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware volumes: - /etc/localtime:/etc/localtime:ro - .:/lab/frigate:cached - ./config/config.yml:/config/config.yml:ro - ./debug:/media/frigate - - /dev/bus/usb:/dev/bus/usb - - /dev/dri:/dev/dri # for intel hwaccel, needs to be updated for your hardware ports: - "1935:1935" - "5000:5000"