fe80Grau / ytdlp2STRM

A little script to serve Youtube / Twitch / Crunchyroll videos without storage it. Uses yt-dlp HTTP data throught Flask and dynamic URLs. We can use this dynamic URLs to set STRM files.
https://github.com/fe80Grau/ytdlp2STRM
MIT License
173 stars 15 forks source link

Docker compose YAML template #31

Closed INPoppoRTUNE closed 5 months ago

INPoppoRTUNE commented 5 months ago

Here's a compose template based on fe80grau/ytdlp2strm that you might want to add to your README:

---
version: "2.1"
services:
ytdlp2strm:
    image: fe80grau/ytdlp2strm
    container_name: ytdlp2STRM
    environment:
      - AM_I_IN_A_DOCKER_CONTAINER=Yes
      - DOCKER_PORT=5005
    volumes:
      - /local/path/to/media:/media
      - /local/path/to/channel_list.json:/opt/ytdlp2STRM/plugins/youtube/channel_list.json
      - /local/path/to/yt_config.json:/opt/ytdlp2STRM/plugins/youtube/config.json
      - /local/path/to/config.json:/opt/ytdlp2STRM/config/config.json
      - /local/path/to/crons.json:/opt/ytdlp2STRM/config/crons.json
      - ytdlp2strm-data:/opt/ytdlp2STRM
    ports:
      - 5005:5000
    restart: always
volumes:
  ytdlp2strm-data:

Where:

Also I'm not sure if the environment variable DOCKER_PORT is still needed, can you confirm this? Thanks again for the amazing job!

fe80Grau commented 5 months ago

yep @INPoppoRTUNE, thank you very much for the contribution, I include it but it would also be nice if you could send a commit directly with some small changes in the README and the docker-compose.yml file, so that you appear in the collaborators section.

To your question, the DOCKER_PORT variable is necessary, it is not entirely well managed currently, but all plugins manage the port through that variable if AM_I_IN_A_DOCKER_CONTAINER is set to yes, finally this works to write the port in the local path of the strm file

Thank you very much again!!