ydl_api_ng

Simple youtube-dl REST API to launch downloads on a distant server.

Directory Structure

    • .env
    • docker-compose.yml

docker-compose.yml

version: "3.1"
services:
  ydl_api_ng:
    container_name: ydl_api_ng
    image: totonyus/ydl_api_ng
    restart: unless-stopped
    depends_on:
      - ydl_api_ng_redis
    ports:
      - 5011:80
    volumes:
      - ./params:/app/params
      - ./logs:/app/logs
      - ./downloads:/app/downloads
      - ./data:/app/data
      - /etc/localtime:/etc/localtime:ro
    environment:
      - UID=1000
      - GID=1000
      - NB_WORKERS=5
      - LOG_LEVEL=error
      # Redis will be disable is this value is not false, remember to also change the setting in params.ini file
      - DISABLE_REDIS=false
    networks:
      - ydl_api_ng
 
  ydl_api_ng_redis:
    container_name: ydl_api_ng_redis
    image: redis
    restart: unless-stopped
    networks:
      - ydl_api_ng
    volumes:
      - /etc/localtime:/etc/localtime:ro
 
networks:
  ydl_api_ng:

Resources

GitHub: https://github.com/Totonyus/ydl_api_ng

Docker Hub: https://hub.docker.com/r/totonyus/ydl_api_ng

Configuration: https://github.com/Totonyus/ydl_api_ng#installation