Skip to content

Instantly share code, notes, and snippets.

@todgru todgru/jellyfin.md
Last active Jan 19, 2019

Embed
What would you like to do?

Jellyfin setup on Raspberry Pi 3 Debian 9(stretch)

Jellyfin is the open source version of Emby.

install docker

wget -nv -O- https://get.docker.com/ | sh

install jellyfin, run & daemonize

Inspired by https://hub.docker.com/r/jellyfin/jellyfin

docker run -d --restart=unless-stopped --name=jellyfin -p 8096:8096 -v /host/config:/config -v /host/media:/media jellyfin/jellyfin

create service

Inspired by: https://stackoverflow.com/a/39493500

Create systemd service file:

vim /etc/systemd/docker-jellyfin.service

Contents of systemd service file:

[Unit]
Description=Jellyfin docker container
Requires=docker.service
After=docker.service

[Service]
Restart=always
ExecStart=/usr/bin/docker start -a jellyfin
ExecStop=/usr/bin/docker stop -t 2 jellyfin

[Install]
WantedBy=default.target

Finally, enable the service:

systemctl enable /etc/systemd/docker-jellyfin.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.