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