feat: add NVIDIA runtime configuration for Jellyfin service on specific host
This commit is contained in:
@@ -7,6 +7,9 @@ services:
|
||||
- PGID=100
|
||||
- TZ=Europe/Amsterdam
|
||||
- JELLYFIN_PublishedServerUrl=https://jellyfin.mvl.sh
|
||||
{% if inventory_hostname == 'mennos-server' %}
|
||||
- NVIDIA_VISIBLE_DEVICES=all
|
||||
{% endif %}
|
||||
volumes:
|
||||
- {{ jellyfin_data_dir }}/jellyfin-config:/config
|
||||
- {{ '/mnt/data/movies' if inventory_hostname == 'mennos-server' else '/mnt/object_storage/movies' }}:/movies
|
||||
@@ -23,6 +26,17 @@ services:
|
||||
- "44"
|
||||
networks:
|
||||
- caddy_network
|
||||
{% if inventory_hostname == 'mennos-server' %}
|
||||
runtime: nvidia
|
||||
deploy:
|
||||
resources:
|
||||
reservations:
|
||||
devices:
|
||||
- driver: nvidia
|
||||
count: all
|
||||
capabilities: [gpu]
|
||||
{% endif %}
|
||||
|
||||
|
||||
fladder:
|
||||
image: ghcr.io/donutware/fladder:latest
|
||||
|
Reference in New Issue
Block a user