From ec828c185d88efc96758c22170a845a077936e65 Mon Sep 17 00:00:00 2001 From: Derek Cooper Date: Wed, 20 May 2026 23:05:43 -0700 Subject: [PATCH] created metube --- Metube/.env.example | 34 ++++++++++++++++++++++++++++++++++ Metube/docker-compose.yaml | 25 +++++++++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 Metube/.env.example create mode 100644 Metube/docker-compose.yaml diff --git a/Metube/.env.example b/Metube/.env.example new file mode 100644 index 0000000..c445244 --- /dev/null +++ b/Metube/.env.example @@ -0,0 +1,34 @@ +# MeTube Docker Compose - Environment Variables +# Copy this file to .env and fill in your values + +# --- Image --- + +# MeTube image tag (use a specific version for stability, or 'latest') +METUBE_VERSION=latest + +# --- Permissions --- + +# User and group ID that MeTube runs as (match your host user to avoid permission issues) +METUBE_PUID=1000 +METUBE_PGID=1000 + +# File permission mask applied to downloaded files (022 = owner rw, group/others r) +METUBE_UMASK=022 + +# --- Storage --- + +# Host path where downloaded files will be saved +METUBE_DOWNLOAD=/path/to/downloads + +# --- Network --- + +# Host port to expose the MeTube web UI on +METUBE_PORT=8081 + +# --- Download Behavior --- + +# Delete the file from disk when trashed in the UI (true/false) +METUBE_DELETE_FILE_ON_TRASHCAN=true + +# Seconds after completion before a finished download is removed from the queue (3600 = 1 hour, 0 = disabled) +METUBE_CLEAR_COMPLETED_AFTER=3600 diff --git a/Metube/docker-compose.yaml b/Metube/docker-compose.yaml new file mode 100644 index 0000000..58d994e --- /dev/null +++ b/Metube/docker-compose.yaml @@ -0,0 +1,25 @@ +services: + app: + image: alexta69/metube:${METUBE_VERSION:-latest} + container_name: metube-app + environment: + - PUID=${METUBE_PUID:-1000} + - PGID=${METUBE_PGID:-1000} + - UMASK=${METUBE_UMASK:-022} + - DELETE_FILE_ON_TRASHCAN=${METUBE_DELETE_FILE_ON_TRASHCAN:-true} + - CLEAR_COMPLETED_AFTER=${METUBE_CLEAR_COMPLETED_AFTER:-3600} + volumes: + - ${METUBE_DOWNLOAD}:/downloads + ports: + - ${METUBE_PORT}:8081 + healthcheck: + test: ["CMD", "curl", "-f", "http://localhost:8081/"] + interval: 30s + timeout: 10s + retries: 3 + start_period: 10s + deploy: + resources: + limits: + memory: 512m + restart: unless-stopped \ No newline at end of file