This commit is contained in:
2026-01-25 23:29:04 +08:00
parent 895f6e4bd0
commit 27e7499ad2
8 changed files with 40 additions and 129 deletions

View File

@@ -3,28 +3,22 @@ services:
image: nyanmisaka/jellyfin:latest
container_name: jellyfin
network_mode: 'host'
group_add:
# needs mapping from localhost, i.e. `getent group render | cut -d: -f3`.
# also probably needs manual `groupadd -g 993 render` inside.
- '993'
volumes:
- /opt/jellyfin:/config
- /var/lib/jellyfin:/config
- jellyfin-cache:/cache
- type: bind
source: /media
target: /media
# Optional - extra fonts to be used during transcoding with subtitle burn-in
- /media:/media
# - /dev/dri/renderD128:/dev/dri/renderD128
- type: bind
source: /usr/share/fonts/opentype
target: /usr/local/share/fonts/custom
read_only: true
devices:
- /dev/dri:/dev/dri
- /dev/dri/renderD128:/dev/dri/renderD128
#- /dev/dri/card0:/dev/dri/card0
restart: 'unless-stopped'
# Optional - alternative address used for autodiscovery
# environment:
# - JELLYFIN_PublishedServerUrl=
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes: