Files
MusicDownloader/compose.yaml
T

39 lines
1.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
services:
musicdownloader:
build: .
image: local-musicdownloader:latest
container_name: MusicDownloader
# 完了後も2時間待機ループで常駐させるため unless-stopped
restart: unless-stopped
mem_limit: 768m
memswap_limit: 768m
deploy:
resources:
limits:
memory: 768M
environment:
- TZ=Asia/Tokyo
# .NET GC設定: Workstation GC強制、ヒープ制限50%で省メモリ化
- DOTNET_gcServer=0
- DOTNET_GCHeapHardLimitPercent=50
# 定期チェック間隔(時間単位、デフォルト2時間)
- CHECK_INTERVAL_HOURS=2
# プレイリストURLをコンテナ側から上書きしたい場合に指定
# - PLAYLIST_URL=https://www.youtube.com/playlist?list=...
# 年齢制限動画取得用のCookieファイルパスを明示指定する場合(未指定でも /music/cookies.txt 等から自動検出)
# - YOUTUBE_COOKIES_PATH=/music/cookies.txt
volumes:
# YouTubeからダウンロードした音楽ファイルをホストの G:\マイドライブ\MyMusic に出力(ジャンクション C:\MyMusic 経由)
# ※ 年齢制限動画を取得する場合、ホスト側の C:\MyMusic\cookies.txt に配置すればコンテナ内 (/music/cookies.txt) で自動検知されます
- C:\MyMusic:/music
# ホストのログディレクトリ C:\feeds\Log へ出力するためのマウント
- C:\feeds:/feeds
# 初回起動時の動作設定(最初から行う: from_scratch / 続きから行う: resume)
- C:\VS2026\MusicDownloader\run_config.json:/app/run_config.json:ro
networks:
- common-network
networks:
common-network:
external: true