Move youtube DL to its own service

This commit is contained in:
Colin Hebert
2023-01-20 18:12:16 +01:00
parent 8c13ce22df
commit 8358586442
2 changed files with 40 additions and 29 deletions

View File

@@ -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:

View File

@@ -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/