2024-03-02, 10:13 AM
(This post was last modified: 2024-03-02, 10:14 AM by creylon. Edited 1 time in total.)
I use the dedicated GPU instead of the onboard, so I map renderD129 and card1 into the container. Setting user to 1000:1000 doesn't work, server won't start due to permission errors.
Code:
version: '3'
services:
jellyfin:
container_name: jellyfin
image: jellyfin/jellyfin:10.8.13-1
group_add:
- "989" # render group
- "986" # video group
- "993" # input group
dns:
- 1.1.1.1
volumes:
- "./config:/config"
- "./cache:/cache"
- "./config.json:/jellyfin/jellyfin-web/config.json"
- "/home/media:/media:ro"
devices:
# VAAPI Devices
- /dev/dri/renderD129:/dev/dri/renderD128
- /dev/dri/card1:/dev/dri/card0
- /dev/kfd:/dev/kfd
environment:
- ROC_ENABLE_PRE_VEGA=1
ports:
- 8096:8096
restart: always
networks:
default:
name: main
external: true