2024-06-12, 10:21 PM
(2024-06-12, 10:11 PM)TheDreadPirate Wrote: Step number 2. Did you install the Nvidia container toolkit? Because why would Nvidia make things simple for us?
Also, can you share your docker compose file with us?
Yes, I did install the container toolkit! Can't have it be too easy or everyone would be doing it.
Here's my compose file!
Code:
services:
jellyfin:
image: jellyfin/jellyfin
container_name: jellyfin
network_mode: 'host'
volumes:
- /home/me/jellyfin:/config
- /home/me/jellyfin:/cache
- type: bind
source: /media/me/library/Movies
target: /Movies
- type: bind
source: /media/me/library/Shows
target: /Shows
read_only: true
restart: 'unless-stopped'
runtime: nvidia
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]