ytdl-sub/docker
2022-05-30 13:02:23 -07:00
..
root Always convert thumbnails to jpg (#51) 2022-05-30 09:59:25 -07:00
docker-compose.yml Dockerfile and docker-compose.yml (#36) 2022-05-20 12:52:58 -07:00
Dockerfile ffmpeg install in docker (#55) 2022-05-30 13:02:23 -07:00
README.md Docker Readme (#38) 2022-05-20 13:32:20 -07:00

Running ytdl-sub in Docker

The ytdl-sub docker image uses LinuxServer's base alpine image. It looks, feels, and operates like other LinuxServer.io images.

The image will install ytdl-sub as a python package, and can be used via command line with ytdl-sub.

Building Locally

Run make docker in the root directory of this repo to build the image. This will build the python wheel and install it in the Dockerfile.

Usage

docker-compose

version: "2.1"
services:
  ytdl-sub:
    image: ytdl-sub:latest
    container_name: ytdl-sub
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=America/Los_Angeles
    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
    restart: unless-stopped

docker cli

docker run -d \
    --name=ytdl-sub \
    -e PUID=1000 \
    -e PGID=1000 \
    -e TZ=America/Los_Angeles \
    -v <path/to/ytdl-sub/config>:/config \
    -v <OPTIONAL/path/to/tv_shows>:/tv_shows \
    -v <OPTIONAL/path/to/movies>:/movies \
    -v <OPTIONAL/path/to/music_videos>:/music_videos \
    -v <OPTIONAL/path/to/music>:/music \
    --restart unless-stopped \
    ytdl-sub:latest