From 0547ffeec55a8414a7be68a9b1c69630031ff3d1 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sun, 14 Apr 2024 23:55:20 +0300 Subject: [PATCH] shinobi. passing through GPU device into container. --- shinobi/.env.dist | 3 +++ shinobi/docker-compose.yml | 2 ++ 2 files changed, 5 insertions(+) diff --git a/shinobi/.env.dist b/shinobi/.env.dist index 4ff1abc..2c01372 100644 --- a/shinobi/.env.dist +++ b/shinobi/.env.dist @@ -9,5 +9,8 @@ DB_DIR=./database VIDEOS_DIR=./video PLUGINS_DIR=./plugins +# Uncomment this for AMD GPU video acceleration +#VIDEO_ACCEL_DEVICE=/dev/dri/renderD128 + LOG_MAX_SIZE=5m LOG_MAX_FILE=5 diff --git a/shinobi/docker-compose.yml b/shinobi/docker-compose.yml index 76ab006..00d55a9 100644 --- a/shinobi/docker-compose.yml +++ b/shinobi/docker-compose.yml @@ -19,6 +19,8 @@ services: - "${VIDEOS_DIR}:/home/Shinobi/videos:rw" - "${PLUGINS_DIR}:/home/Shinobi/plugins:rw" - "/etc/localtime:/etc/localtime:ro" + devices: + - "${VIDEO_ACCEL_DEVICE:-/dev/null}:${VIDEO_ACCEL_DEVICE:-/dev/null}" env_file: .env restart: unless-stopped logging: