Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install in docker #3

Open
talesam opened this issue Jul 26, 2024 · 10 comments
Open

Install in docker #3

talesam opened this issue Jul 26, 2024 · 10 comments

Comments

@talesam
Copy link

talesam commented Jul 26, 2024

Could you provide more details on how to install it in Docker?

@BobHasNoSoul
Copy link
Owner

you will need to mount a volume of the webroot (this depends on container supplier so i cant be super specific) i would guess a volume of /jellyfin/jellyfin-web would be the correct dir

then you edit the parts mentioned in the readme.md depending on your jellyfin version.

@BugZappa
Copy link

BugZappa commented Oct 31, 2024

Steps i took to get this mod to work via docker-compose & the official jellyfin image:

  1. Start Jellyfin
  2. Make a directory on the host machine, we'll be mounting this directory in Jellyfin as a volume bind.
  3. cd into this directory you've made & run this command sudo docker cp jellyfin:/jellyfin/jellyfin-web /Your/Mount/Path
  • Replace /Your/Mount/Path with the directory you made in step 2).

  • if you run the ls command you should see a directory named jellyfin-web (this is good!)

  1. Edit your Jellyfin's docker-compose file and specify this volume:
    image
  2. Recreate your stack with sudo docker compose up -d --force-recreate
  3. Hopefully if everything is done correctly your stack is now online getting its data from your mount path rather than inside your container, you can now follow the Installation steps on the main page..
    image

[Update] - Persistent storage for the ./avatars path

^^^Be sure to follow the steps above first and have the mod working already.^^^

  1. cd into the directory you made in step 2).
  2. Make a new directory called ./avatars
  3. You're going to want to move the contents of the avatars folder to this new one. -- sudo mv /Your/Mount/Path/jellyfin-web/avatars/* /Your/Mount/Path/avatars
  4. Modify your docker-compose.yml file and specify this volume.
    image
  5. Recreate your stack with sudo docker compose up -d --force-recreate

This way if your Jellyfin updates you won't have to re-pull all the images from the repository and just modify the necessary files.

Shout out BobHasNoSoul for the information!

@Masterpayneio
Copy link

Would this prevent Jellyfin from properly updating? I can imagine that /jellyfin-web is often modified when there's a new release

@BugZappa
Copy link

BugZappa commented Nov 2, 2024

Would this prevent Jellyfin from properly updating? I can imagine that /jellyfin-web is often modified when there's a new release

Hm, I'm not entirely sure. I'll have to look into this.

When I initially set out to get this mod to work I was hoping Jellyfin would automatically rebuild /jellyfin/jellyfin-web when specified in the docker-compose.yml file - it didn't and it prevented Jellyfin from starting which in turn lead me to copying out the files from the container to the host machine.

If I encounter any issues I'll definitely edit my original post.

@BobHasNoSoul
Copy link
Owner

BobHasNoSoul commented Nov 2, 2024 via email

@BobHasNoSoul
Copy link
Owner

BobHasNoSoul commented Nov 2, 2024 via email

@BobHasNoSoul
Copy link
Owner

okay fully pushed a new update to it so it should now be fixed, please confirm when you get a chance

@Professorvennie
Copy link

Hi I am trying to follow this with Jellyfin installed using portainer. When I run this command: sudo docker cp jellyfin:/jellyfin/jellyfin-web /Your/Mount/Path it just creates an empty folder named jellyfin-web.

@BugZappa
Copy link

BugZappa commented Nov 14, 2024

Hi I am trying to follow this with Jellyfin installed using portainer. When I run this command: sudo docker cp jellyfin:/jellyfin/jellyfin-web /Your/Mount/Path it just creates an empty folder named jellyfin-web.

Hm, I'm going to be honest with you. Building stacks & containers with Portainer works, but really isn't recommended.

With that being said, I would verify that 1) the containers name is actually called jellyfin (containers will default to some random name if not defined), 2) the files exist within the jellyfin container, you can enter the container by running sudo docker exec -it jellyfin bash and cd or ls the jellyfin root folder /jellyfin.

Apologies for the poor formatting, writing this on my phone.

@Jerrys-modz
Copy link

Hi I am trying to follow this with Jellyfin installed using portainer. When I run this command: sudo docker cp jellyfin:/jellyfin/jellyfin-web /Your/Mount/Path it just creates an empty folder named jellyfin-web.

Hm, I'm going to be honest with you. Building stacks & containers with Portainer works, but really isn't recommended.

With that being said, I would verify that 1) the containers name is actually called jellyfin (containers will default to some random name if not defined), 2) the files exist within the jellyfin container, you can enter the container by running sudo docker exec -it jellyfin /bin/bash and cd or ls the jellyfin root folder /jellyfin.

Apologies for the poor formatting, writing this on my phone.

Thank you! I ran the command again and it worked this time. Not sure what happened before I ran it a couple times

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants