From fa839c0201b25d2e0f2bdd09a56388de9439624c Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Wed, 12 Jun 2024 10:56:19 +0200 Subject: [PATCH] Add cutsom volmues section in Installing.md --- INSTALLING.md | 35 +++++++++++++++++++++++++++++++++-- 1 file changed, 33 insertions(+), 2 deletions(-) diff --git a/INSTALLING.md b/INSTALLING.md index a8bc72cb..8a31de48 100644 --- a/INSTALLING.md +++ b/INSTALLING.md @@ -6,7 +6,8 @@ [`.env`](https://raw.githubusercontent.com/zoriya/Kyoo/master/.env.example) files 3. Fill the `.env` file with your configuration options 4. Look at [Hardware Acceleration section](#Hardware-Acceleration) if you need it -5. Run `docker compose up -d` and see kyoo at `http://localhost:8901` +5. Look at [Custom Volumes](#Custom-Volumes) if you need it, +6. Run `docker compose up -d` and see kyoo at `http://localhost:8901` # Installing @@ -28,7 +29,8 @@ Those files are: > The `docker-compose.yml` file describes the different services of Kyoo, where they should be downloaded and their start order. \ > The `.env` file contains all the configuration options that the services in `docker-compose.yml` will read. -If you need hardware acceleration, look at [Hardware Acceleration section](#Hardware-Acceleration) if you need it +If you need hardware acceleration, look at [Hardware Acceleration section](#Hardware-Acceleration). +If you need custom volumes (because video directories are on different disks and you can't use raid, because you use network drives or another custom volume type), look at [Custom Volumes](#Custom-Volumes). The next and last step is actually starting Kyoo. To do that, open a terminal in the same directory as the 3 configurations files and run `docker-compose up -d`. @@ -88,3 +90,32 @@ You can also add `COMPOSE_PROFILES=nvidia` to your `.env` instead of adding the Note that most nvidia cards have an artificial limit on the number of encodes. You can confirm your card limit [here](https://developer.nvidia.com/video-encode-and-decode-gpu-support-matrix-new). This limit can also be removed by applying an [unofficial patch](https://github.com/keylase/nvidia-patch) to you driver. + +# Custom volumes + +To customize volumes, you can edit the `docker-compose.yml` manually. + +For example, if your library is split into multiples paths you can edit the `volumes` section of **BOTH the transcoder and the scanner** like so: + +```patch + x-transcoder: &transcoder-base + image: ghcr.io/zoriya/kyoo_transcoder:edge + networks: + default: + aliases: + - transcoder + restart: unless-stopped + env_file: + - ./.env + environment: + - GOCODER_PREFIX=/video + volumes: +- - ${LIBRARY_ROOT}:/video:ro ++ - /my_path/number1:/video/1:ro ++ - /c/Users/Videos/:video/c:ro + - ${CACHE_ROOT}:/cache + - metadata:/metadata +``` +You can also edit the volume definition to use advanced volume drivers if you need to access smb or network drives. Mounting a drive into your filesystem and binding it in this volume section is also a valid choice (especially for fuse filesystems like cloud drives for example). + +Don't forget to **also edit the scanner's volumes** if you edit the transcoder's volume.