These are some guides for various use.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
2.5 KiB

7 months ago
  1. # Jellyfin
  2. ## Setup Server
  3. ### Docker
  4. The official container and documentation was made by [linuxserver](https://hub.docker.com/linuxserver/jellyfin).
  5. This docker-rebuild is made up by a `docker-compose.yml` file.
  6. #### Environment-variables
  7. Set the following environment-variables in the `environment:` section of the docker-compose file.
  8. | Name | Usage | Default |
  9. | ------------------- | ---------------------------- | ------- |
  10. | PUID | Userid to run the container | |
  11. | PGID | Groupid to run the container | |
  12. | TZ | specify the timezone | |
  13. #### Volumes
  14. Set the following volumes in the `volumes:` section of the docker-compose file.
  15. | Volume-Name | Container mount | Description |
  16. | ---------------- | ---------------------- | ------------------------------------ |
  17. | config | /config | storage for config files of jellyfin |
  18. | media\_movies | /data/movies | storage for movies |
  19. | media\_tvshows | /data/tvshows | storage for tvshows |
  20. | transcode | /transcode | tmp storage to transcode |
  21. Because it is useful to have the possibility to use the `media_movies` and `media_tvshows` in multiple containers,
  22. it is recommended to use them as external volumes (volumes section: `external: true` instead of `driver: local`).
  23. To use the rebuild the volumes have to exist before creating the container (`docker volume create media_movies` and tvshows accordingly).
  24. #### Ports
  25. Set the following ports in the `ports:` section.
  26. | Container Port | Recommended outside port | Protocol | Description |
  27. | -------------- | ------------------------ | -------- | ----------- |
  28. | 8096 | 8096 | TCP | WebUI |
  29. #### Rebuild
  30. ```
  31. #!/bin/sh
  32. docker-compose down
  33. docker pull linuxserver/jellyfin:latest
  34. docker-compose up -d
  35. ```
  36. #### Docker-Compose.yml
  37. ```
  38. version: "2"
  39. services:
  40. jellyfin:
  41. image: linuxserver/jellyfin
  42. container_name: jellyfin
  43. environment:
  44. - PUID=1000
  45. - PGID=1000
  46. - TZ=Europe/Berlin
  47. volumes:
  48. - config:/config
  49. - media_movies:/data/movies
  50. - media_tvshows:/data/tvshows
  51. - transcode:/transcode
  52. ports:
  53. - 8096:8096
  54. restart: unless-stopped
  55. volumes:
  56. config:
  57. driver: local
  58. transcode:
  59. driver: local
  60. media_movies:
  61. external: true
  62. media_tvshows:
  63. external: true
  64. ```