From 8358586442ee30595670c6abf19dab070fd54773 Mon Sep 17 00:00:00 2001 From: Colin Hebert Date: Fri, 20 Jan 2023 18:12:16 +0100 Subject: [PATCH] Move youtube DL to its own service --- downloads.docker-compose.yml | 29 ------------------------- youtube-dl/docker-compose.yml | 40 +++++++++++++++++++++++++++++++++++ 2 files changed, 40 insertions(+), 29 deletions(-) create mode 100644 youtube-dl/docker-compose.yml diff --git a/downloads.docker-compose.yml b/downloads.docker-compose.yml index ed47714..ba727d5 100644 --- a/downloads.docker-compose.yml +++ b/downloads.docker-compose.yml @@ -1,30 +1,6 @@ name: Downloads services: - youtube-dl: - image: alexta69/metube - environment: - UID: ${NASCOMPOSE_UID?} - GID: ${NASCOMPOSE_GID?} - YTDL_OPTIONS: > - { - "writesubtitles": true, - "subtitleslangs": ["all", "-live_chat"], - "subtitlesformat": "ass/srt/best", - "postprocessors": [ - { "key": "FFmpegEmbedSubtitle" }, - { "key": "FFmpegMetadata" } - ] - } - networks: - - traefik - volumes: - - youtube:/downloads - restart: unless-stopped - labels: - traefik.enable: true - traefik.http.routers.youtube-dl.middlewares: authelia@file - nzbget: image: linuxserver/nzbget profiles: [usenet] @@ -54,11 +30,6 @@ volumes: type: none o: bind device: ${NASCOMPOSE_DATA?}/usenet/ - youtube: - driver_opts: - type: none - o: bind - device: ${NASCOMPOSE_DATA?}/youtube/ nzbget_config: driver_opts: diff --git a/youtube-dl/docker-compose.yml b/youtube-dl/docker-compose.yml new file mode 100644 index 0000000..d5d5d17 --- /dev/null +++ b/youtube-dl/docker-compose.yml @@ -0,0 +1,40 @@ +name: Youtube-DL + +services: + youtube-dl: + image: alexta69/metube + environment: + UID: ${NASCOMPOSE_UID?} + GID: ${NASCOMPOSE_GID?} + YTDL_OPTIONS: > + { + "writesubtitles": true, + "subtitleslangs": ["all", "-live_chat"], + "subtitlesformat": "ass/srt/best", + "postprocessors": [ + { "key": "FFmpegEmbedSubtitle" }, + { "key": "FFmpegMetadata" } + ] + } + networks: + - traefik + volumes: + - youtub-dl:/downloads + restart: unless-stopped + labels: + traefik.enable: true + traefik.http.routers.youtube-dl.middlewares: authelia@file + +networks: + youtube-dl: + name: youtube-dl + + traefik: + external: true + +volumes: + youtube-dl: + driver_opts: + type: none + o: bind + device: ${NASCOMPOSE_DATA?}/youtub-dl/