added gpu to jellyfin

This commit is contained in:
2026-11-09 01:56:36 +00:00
parent e8637f437f
commit 45d19dd614
2 changed files with 52 additions and 2 deletions
+28
View File
@@ -0,0 +1,28 @@
# Jellyfin GPU (NVIDIA) — standalone alternative to compose.yaml
services:
jellyfin:
image: ${JELLYFIN_IMAGE:-jellyfin/jellyfin:latest}
restart: ${JELLYFIN_RESTART:-unless-stopped}
volumes:
- ${VOL_PATH:-/data}/jellyfin/cache:/cache
- ${VOL_PATH:-/data}/jellyfin/config:/config
- ${JELLYFIN_MEDIA:-/data}/media:/media
environment:
- JELLYFIN_PublishedServerUrl=${JELLYFIN_URL:-http://localhost:8096}
- NVIDIA_DRIVER_CAPABILITIES=all
- NVIDIA_VISIBLE_DEVICES=all
ports:
- "${JELLYFIN_PORT:-8096}:8096"
networks:
- proxy
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: all
capabilities: [gpu]
networks:
proxy:
external: true