emby: GPU acceleration device pass (#67)

Passing GPU acceleration device to the container.

Reviewed-on: #67
This commit is contained in:
Alexey Skobkin 2023-08-15 20:58:27 +00:00
parent fba267ae29
commit 4b2fc426c9
2 changed files with 7 additions and 2 deletions

View File

@ -11,6 +11,9 @@ HOST_MULTIMEDIA_DIR=/mnt/multimedia
# Leave as it is unless you really need something else
INT_MULTIMEDIA_DIR=/libraries
# Uncomment this for AMD GPU video acceleration
#VIDEO_ACCEL_DEVICE=/dev/dri/renderD128
WEBUI_BIND_ADDR=0.0.0.0
WEBUI_BIND_PORT=8096
WEBUI_INT_BIND_PORT=8096
@ -18,4 +21,4 @@ WEBUI_INT_BIND_PORT=8096
#WEBUI_INT_HTTPS_BIND_PORT=8920
LOG_MAX_SIZE=5m
LOG_MAX_FILE=5
LOG_MAX_FILE=5

View File

@ -1,5 +1,5 @@
# https://hub.docker.com/r/emby/embyserver
version: '3.7'
version: '3.8'
services:
emby:
@ -8,6 +8,8 @@ services:
volumes:
- "${HOST_CONFIG_DIR:-./config}:/config"
- "${HOST_MULTIMEDIA_DIR}:${INT_MULTIMEDIA_DIR:-/libraries}"
devices:
- "${VIDEO_ACCEL_DEVICE:-/dev/null}:${VIDEO_ACCEL_DEVICE:-/dev/null}"
ports:
- "${WEBUI_BIND_ADDR:-127.0.0.1}:${WEBUI_BIND_PORT:-8096}:${WEBUI_INT_BIND_PORT:-8096}/tcp"
# Use reverse-proxy instead