Reorganize Jellyfin to reflect usage of Nvidia Container Toolkit, configure hw accel
This commit is contained in:
parent
05a7f19bfe
commit
cff68a2a73
@ -1,13 +1,31 @@
|
||||
# vim:ft=ansible:
|
||||
- name: docker deploy jellyfin
|
||||
docker_container:
|
||||
name: jellyfin
|
||||
image: jellyfin/jellyfin:latest
|
||||
networks:
|
||||
- name: web
|
||||
aliases: [ "jellyfin" ]
|
||||
volumes:
|
||||
- /data/jellyfin/config:/config
|
||||
- /data/jellyfin/cache:/cache
|
||||
- /data/shared/media:/media
|
||||
docker_compose:
|
||||
project_name: jellyfin
|
||||
definition:
|
||||
version: "2.1"
|
||||
services:
|
||||
jellyfin:
|
||||
image: jellyfin/jellyfin:latest
|
||||
container_name: jellyfin
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- capabilities: [ gpu ]
|
||||
environment:
|
||||
NVIDIA_DRIVER_CAPABILITIES: all
|
||||
NVIDIA_VISIBLE_DEVICES: all
|
||||
networks:
|
||||
web:
|
||||
aliases:
|
||||
- jellyfin
|
||||
volumes:
|
||||
- /data/jellyfin/config:/config
|
||||
- /data/jellyfin/cache:/cache
|
||||
- /data/shared/media:/media
|
||||
networks:
|
||||
web:
|
||||
external: yes
|
||||
name: web
|
||||
tags: [ docker, jellyfin ]
|
||||
|
Loading…
Reference in New Issue
Block a user