shinobi. passing through GPU device into container.
This commit is contained in:
parent
0ffd7a3f64
commit
0547ffeec5
|
@ -9,5 +9,8 @@ DB_DIR=./database
|
||||||
VIDEOS_DIR=./video
|
VIDEOS_DIR=./video
|
||||||
PLUGINS_DIR=./plugins
|
PLUGINS_DIR=./plugins
|
||||||
|
|
||||||
|
# Uncomment this for AMD GPU video acceleration
|
||||||
|
#VIDEO_ACCEL_DEVICE=/dev/dri/renderD128
|
||||||
|
|
||||||
LOG_MAX_SIZE=5m
|
LOG_MAX_SIZE=5m
|
||||||
LOG_MAX_FILE=5
|
LOG_MAX_FILE=5
|
||||||
|
|
|
@ -19,6 +19,8 @@ services:
|
||||||
- "${VIDEOS_DIR}:/home/Shinobi/videos:rw"
|
- "${VIDEOS_DIR}:/home/Shinobi/videos:rw"
|
||||||
- "${PLUGINS_DIR}:/home/Shinobi/plugins:rw"
|
- "${PLUGINS_DIR}:/home/Shinobi/plugins:rw"
|
||||||
- "/etc/localtime:/etc/localtime:ro"
|
- "/etc/localtime:/etc/localtime:ro"
|
||||||
|
devices:
|
||||||
|
- "${VIDEO_ACCEL_DEVICE:-/dev/null}:${VIDEO_ACCEL_DEVICE:-/dev/null}"
|
||||||
env_file: .env
|
env_file: .env
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
logging:
|
logging:
|
||||||
|
|
Loading…
Reference in a new issue