mirror of
https://github.com/alexta69/metube.git
synced 2025-04-02 20:07:36 +03:00
- Added support for yt-dlp emp path - Formatted with Black - Updated README to reflect new TEMP_DIR setting; linted - Modified Dockerfile to strip carriage return characters from docker-entrypoint.sh script to fix building the image on Windows - Added example docker-compose.yml config
30 lines
1.1 KiB
YAML
30 lines
1.1 KiB
YAML
version: "3"
|
|
services:
|
|
metube:
|
|
# Local Build: Use the following to build the Docker image locally
|
|
build:
|
|
context: .
|
|
dockerfile: ./Dockerfile
|
|
image: metube
|
|
# Official Image: Comment out the lines above and uncomment the following line to use the official image
|
|
# image: ghcr.io/alexta69/metube
|
|
container_name: metube
|
|
restart: unless-stopped
|
|
ports:
|
|
- "8081:8081"
|
|
|
|
# Example environment variables
|
|
environment:
|
|
# UID: 1000
|
|
# GID: 1000
|
|
YTDL_OPTIONS: '{"writesubtitles": true, "subtitleslangs": ["en", "-live_chat"], "postprocessors": [{"key": "FFmpegEmbedSubtitle", "already_have_subtitle": false}, {"key": "FFmpegMetadata", "add_chapters": true}]}'
|
|
# Configure yt-dlp to download intermediary files to /temp
|
|
TEMP_DIR: /temp
|
|
|
|
volumes:
|
|
- ./downloads:/downloads
|
|
# Mount /temp using tmpfs
|
|
# This will store the intermediary files in memory, making downloads faster; however, you won't be able to
|
|
# resume a download if you stop the container
|
|
- type: tmpfs
|
|
target: /temp:rw,nosuid,nodev,exec
|