This commit is contained in:
2026-03-10 22:32:05 +08:00
commit de678ac4f9
7 changed files with 189 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
# refer navidrome/docker-compose.yml for security options, or just ask doubao.
services:
jellyfin:
image: nyanmisaka/jellyfin:latest
container_name: jellyfin
network_mode: "host"
volumes:
- jellyfin-config:/config
- jellyfin-cache:/cache
- ${MEDIA_PATH:-/media}:/media:ro,nosuid,nodev # recursive 'rx'
# - /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/renderD128:/dev/dri/renderD128:rw
#- /dev/dri/card0:/dev/dri/card0
restart: 'unless-stopped'
#environment:
# - JELLYFIN_PublishedServerUrl=http://localhost:8096
extra_hosts:
- 'host.docker.internal:host-gateway'
volumes:
jellyfin-cache:
driver: local
jellyfin-config:
driver: local