# container-jellyfin.service
# autogenerated by Podman 5.5.2
# Sat Aug 23 21:30:45 EEST 2025

[Unit]
Description=Podman container-jellyfin.service
Documentation=man:podman-generate-systemd(1)
Wants=network-online.target
After=network-online.target
RequiresMountsFor=%t/containers

[Service]
Environment=PODMAN_SYSTEMD_UNIT=%n
Restart=always
TimeoutStopSec=70
ExecStart=/usr/bin/podman run \
	--cidfile=%t/%n.ctr-id \
	--cgroups=no-conmon \
	--rm \
	--sdnotify=conmon \
	--replace \
	-d \
	--name jellyfin \
	--userns=keep-id \
	-p 8096:8096 \
	-p 8920:8920 \
	-p 7359:7359/udp \
	-p 1900:1900/udp \
	-v /home/Messier82/containers/jellyfin/config:/config:Z \
	-v /home/Messier82/containers/jellyfin/cache:/cache:Z \
	-v /home/Messier82/containers/jellyfin/transcodes:/transcodes:Z \
	-v /mnt/wd-blue/Torrent:/media:ro,Z \
	-e NVIDIA_VISIBLE_DEVICES=all \
	-e NVIDIA_DRIVER_CAPABILITIES=compute,video,utility docker.io/jellyfin/jellyfin:latest
ExecStop=/usr/bin/podman stop \
	--ignore -t 10 \
	--cidfile=%t/%n.ctr-id
ExecStopPost=/usr/bin/podman rm \
	-f \
	--ignore -t 10 \
	--cidfile=%t/%n.ctr-id
Type=notify
NotifyAccess=all

[Install]
WantedBy=default.target
