44 lines
1.2 KiB
Plaintext
44 lines
1.2 KiB
Plaintext
[Unit]
|
|
Description=Jellyfin
|
|
Wants=network-online.target
|
|
After=network-online.target
|
|
|
|
[Container]
|
|
Image=docker.io/jellyfin/jellyfin:latest
|
|
AutoUpdate=registry
|
|
ContainerName=jellyfin
|
|
|
|
EnvironmentFile=/mnt/data/containers/jellyfin/.env.jellyfin
|
|
|
|
# due to migrating an existing installation the following is required
|
|
# see https://jellyfin.org/docs/general/administration/migrate/
|
|
Volume=/mnt/data/containers/jellyfin/cache:/var/cache/jellyfin
|
|
Volume=/mnt/data/containers/jellyfin/config:/etc/jellyfin
|
|
Volume=/mnt/data/containers/jellyfin/data:/var/lib/jellyfin
|
|
Volume=/mnt/data/containers/jellyfin/log:/var/log/jellyfin
|
|
|
|
# these need to match the source system, from the fstab:
|
|
# <nas ip or hostname>:/video /mnt/media nfs defaults 0 1
|
|
# <nas ip or hostname>:/audio /mnt/music nfs defaults 0 1
|
|
# <nas ip or hostname>:/photo /mnt/camera nfs defaults 0 1
|
|
|
|
Volume=/mnt/video:/mnt/media
|
|
Volume=/mnt/audio:/mnt/music
|
|
Volume=/mnt/photo:/mnt/camera
|
|
|
|
PublishPort=8096:8096
|
|
|
|
Label=homepage.group=Media
|
|
Label=homepage.name=Jellyfin
|
|
Label=homepage.icon=jellyfin.png
|
|
Label=homepage.href=https://jellyfin.inkletblot.com
|
|
Label=homepage.description="Stream Media"
|
|
|
|
[Service]
|
|
Restart=always
|
|
TimeoutStartSec=900
|
|
SuccessExitStatus=0 143
|
|
|
|
[Install]
|
|
WantedBy=default.target
|