basic setup i would normally use

This commit is contained in:
b-hayes 2025-07-01 09:49:08 +10:00
parent ca0aac4051
commit 209ff53b76
2 changed files with 35 additions and 1 deletions

9
.gitignore vendored
View file

@ -14,6 +14,7 @@ speed-measure-plugin*.json
# IDEs and editors # IDEs and editors
/ui/.idea /ui/.idea
.idea/
.project .project
.classpath .classpath
.c9/ .c9/
@ -44,6 +45,12 @@ testem.log
.DS_Store .DS_Store
Thumbs.db Thumbs.db
# Python
__pycache__ __pycache__
.venv .venv
# Environment files
.env
# Downloads directory
downloads/

27
docker-compose.yml Normal file
View file

@ -0,0 +1,27 @@
# MeTube - Self-hosted YouTube downloader with web UI
# This setup allows you to modify the code and see changes reflected in the running container
services:
metube:
build: .
container_name: MeTube-Dev
restart: unless-stopped
ports:
- "8081:8081"
environment:
# Tells MeTube to use separate directories for video and audio downloads
- DOWNLOAD_DIR=/downloads/video
- AUDIO_DOWNLOAD_DIR=/downloads/audio
# Filename templates for downloads
- OUTPUT_TEMPLATE=%(artist,uploader)s/%(artist,uploader)s - %(title)s%(genre& [%s]|)s (%(release_date>%Y-%m-%d,upload_date>%Y-%m-%d)s).%(ext)s
- OUTPUT_TEMPLATE_PLAYLIST=%(playlist_title)s/%(artist,uploader)s - %(title)s%(genre& [%s]|)s (%(release_date>%Y-%m-%d,upload_date>%Y-%m-%d)s).%(ext)s
# Development environment
- PYTHONUNBUFFERED=1
volumes:
# Maps your local paths to the container paths
- ${VIDEO_DOWNLOAD_DIR:-./downloads/video}:/downloads/video
- ${AUDIO_DOWNLOAD_DIR:-./downloads/audio}:/downloads/audio
# Mount source code for live editing
- ./app:/app/app
# Override the entrypoint to run Python directly for easier development
command: ["python", "-u", "app/main.py"]