[DOCS] Docker passthrough install docs (#548)
This commit is contained in:
parent
9c41a17375
commit
ec51361728
1 changed files with 59 additions and 4 deletions
|
|
@ -33,10 +33,65 @@ on how set up a cron job in the docker container.
|
||||||
- DOCKER_MODS=linuxserver/mods:universal-cron
|
- DOCKER_MODS=linuxserver/mods:universal-cron
|
||||||
volumes:
|
volumes:
|
||||||
- <path/to/ytdl-sub/config>:/config
|
- <path/to/ytdl-sub/config>:/config
|
||||||
- <path/to/tv_shows>:/tv_shows # optional
|
- <path/to/tv_shows>:/tv_shows # optional
|
||||||
- <path/to/movies>:/movies # optional
|
- <path/to/movies>:/movies # optional
|
||||||
- <path/to/music_videos>:/music_videos # optional
|
- <path/to/music_videos>:/music_videos # optional
|
||||||
- <path/to/music>:/music # optional
|
- <path/to/music>:/music # optional
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
Nvidia GPU Passthrough
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
For GPU passthrough, you must use the ``ytdl-sub`` Ubuntu version with the following additions:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
services:
|
||||||
|
ytdl-sub:
|
||||||
|
image: ghcr.io/jmbannon/ytdl-sub:ubuntu-latest
|
||||||
|
container_name: ytdl-sub
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- TZ=America/Los_Angeles
|
||||||
|
- DOCKER_MODS=linuxserver/mods:universal-cron
|
||||||
|
- NVIDIA_DRIVER_CAPABILITIES=all # Nvidia ENV args
|
||||||
|
- NVIDIA_VISIBLE_DEVICES=all
|
||||||
|
volumes:
|
||||||
|
- <path/to/ytdl-sub/config>:/config
|
||||||
|
- <path/to/tv_shows>:/tv_shows # optional
|
||||||
|
- <path/to/movies>:/movies # optional
|
||||||
|
- <path/to/music_videos>:/music_videos # optional
|
||||||
|
- <path/to/music>:/music # optional
|
||||||
|
deploy:
|
||||||
|
resources:
|
||||||
|
reservations:
|
||||||
|
devices:
|
||||||
|
- capabilities: [gpu] # GPU passthrough
|
||||||
|
restart: unless-stopped
|
||||||
|
|
||||||
|
CPU Passthrough
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
For CPU passthrough, you must use the ``ytdl-sub`` Ubuntu version with the following additions:
|
||||||
|
|
||||||
|
.. code-block:: yaml
|
||||||
|
|
||||||
|
services:
|
||||||
|
ytdl-sub:
|
||||||
|
image: ghcr.io/jmbannon/ytdl-sub:ubuntu-latest
|
||||||
|
container_name: ytdl-sub
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- TZ=America/Los_Angeles
|
||||||
|
- DOCKER_MODS=linuxserver/mods:universal-cron
|
||||||
|
volumes:
|
||||||
|
- <path/to/ytdl-sub/config>:/config
|
||||||
|
- <path/to/tv_shows>:/tv_shows # optional
|
||||||
|
- <path/to/movies>:/movies # optional
|
||||||
|
- <path/to/music_videos>:/music_videos # optional
|
||||||
|
- <path/to/music>:/music # optional
|
||||||
|
devices:
|
||||||
|
- /dev/dri:/dev/dri # CPU passthrough
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
||||||
Docker
|
Docker
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue