fix: Update jellyfin Docker configuration for GPU passthrough

This commit is contained in:
Ben Martin 2024-07-29 19:39:31 +00:00
parent 90dc051151
commit 7524d34643
Signed by: ben
GPG key ID: 859A655FCD290E4A

View file

@ -10,7 +10,6 @@
"Driver": "docker", "Driver": "docker",
"Config": { "Config": {
"image": "lscr.io/linuxserver/jellyfin:latest", "image": "lscr.io/linuxserver/jellyfin:latest",
"runtime": "nvidia",
"ports": [ "ports": [
"jellyfin" "jellyfin"
], ],
@ -36,6 +35,12 @@
"target": "/config", "target": "/config",
"source": "jellyfin-config" "source": "jellyfin-config"
} }
],
"devices": [
{
"host_path": "/dev/dri",
"container_path": "/dev/dri"
}
] ]
}, },
"Env": { "Env": {
@ -46,13 +51,7 @@
}, },
"Resources": { "Resources": {
"CPU": 1200, "CPU": 1200,
"MemoryMB": 4096, "MemoryMB": 4096
"Devices": [
{
"Name": "nvidia/gpu",
"Count": 1
}
]
} }
} }
], ],