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.

85 lines
2.4 KiB

7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
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
  22. `media_tvshows` in multiple containers,
  23. it is recommended to use them as external volumes (volumes section:
  24. `external: true` instead of `driver: local`).
  25. To use the rebuild the volumes have to exist before creating the container
  26. (`docker volume create media_movies` and tvshows accordingly).
  27. #### Ports
  28. Set the following ports in the `ports:` section.
  29. | Container Port | Recommended outside port | Protocol | Description |
  30. | -------------- | ------------------------ | -------- | ----------- |
  31. | `8096` | `8096` | TCP | WebUI |
  32. #### Rebuild
  33. ```shell
  34. #!/bin/sh
  35. docker-compose down
  36. docker pull linuxserver/jellyfin:latest
  37. docker-compose up -d
  38. ```
  39. #### Docker-Compose.yml
  40. ```yml
  41. version: "2"
  42. services:
  43. jellyfin:
  44. image: linuxserver/jellyfin
  45. container_name: jellyfin
  46. environment:
  47. - PUID=1000
  48. - PGID=1000
  49. - TZ=Europe/Berlin
  50. volumes:
  51. - config:/config
  52. - media_movies:/data/movies
  53. - media_tvshows:/data/tvshows
  54. - transcode:/transcode
  55. ports:
  56. - 8096:8096
  57. restart: unless-stopped
  58. volumes:
  59. config:
  60. driver: local
  61. transcode:
  62. driver: local
  63. media_movies:
  64. external: true
  65. media_tvshows:
  66. external: true
  67. ```