35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
services:
|
|
jellyfin:
|
|
image: jellyfin/jellyfin
|
|
container_name: jellyfin
|
|
network_mode: 'host'
|
|
volumes:
|
|
- ./config:/config
|
|
- ./cache:/cache
|
|
- /opt/argento/smb/media/Movies:/media/movies
|
|
- /opt/argento/smb/media/TV:/media/tv
|
|
- /dev/dri:/dev/dri:rw
|
|
runtime: nvidia
|
|
#deploy:
|
|
# resources:
|
|
# reservations:
|
|
# devices:
|
|
# - driver: nvidia
|
|
# count: all
|
|
# capabilities: [gpu]
|
|
restart: 'unless-stopped'
|
|
# Optional - alternative address used for autodiscovery
|
|
environment:
|
|
- JELLYFIN_PublishedServerUrl=https://jellyfin.timothykim.net
|
|
- NVIDIA_VISIBLE_DEVICES=all
|
|
- NVIDIA_DRIVER_CAPABILITIES=compute,video,utility
|
|
# Optional - may be necessary for docker healthcheck to pass if running in host network mode
|
|
extra_hosts:
|
|
- 'host.docker.internal:host-gateway'
|
|
healthcheck:
|
|
test: ["CMD-SHELL", "nvidia-smi > /dev/null 2>&1 || exit 1"]
|
|
interval: 60s
|
|
timeout: 10s
|
|
retries: 3
|
|
start_period: 30s
|