From e0f4c7e74af31ce6ece09f8986b2d4b5ff7beabf Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 4 Dec 2024 16:53:24 +0100 Subject: [PATCH] Store `rtorrent` session files in volume --- .../docker/services/jellyfin/docker-compose.base.yml | 5 +++-- scripts/Common/Software/docker/services/jellyfin/main.fish | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/Common/Software/docker/services/jellyfin/docker-compose.base.yml b/scripts/Common/Software/docker/services/jellyfin/docker-compose.base.yml index 62f2320e..f2b97998 100644 --- a/scripts/Common/Software/docker/services/jellyfin/docker-compose.base.yml +++ b/scripts/Common/Software/docker/services/jellyfin/docker-compose.base.yml @@ -81,7 +81,7 @@ services: volumes: - ./data/config/flood:/flood - ./data/downloads:/downloads - - ./data/config/rtorrent:/rtorrent + - rtorrent:/rtorrent rtorrent: build: dockerfile: ./rtorrent.Dockerfile @@ -100,7 +100,7 @@ services: -o 'method.set=group.seeding.ratio.command, "d.cloase = ; d.erase = "' volumes: - /etc/localtime:/etc/localtime:ro - - ./data/config/rtorrent:/config + - rtorrent:/config - ./data/downloads:/downloads - ./data/proton:/proton devices: @@ -139,3 +139,4 @@ services: volumes: cache: {} + rtorrent: {} diff --git a/scripts/Common/Software/docker/services/jellyfin/main.fish b/scripts/Common/Software/docker/services/jellyfin/main.fish index 5972034b..31b1ebd7 100755 --- a/scripts/Common/Software/docker/services/jellyfin/main.fish +++ b/scripts/Common/Software/docker/services/jellyfin/main.fish @@ -66,7 +66,7 @@ begin URL="https://$(getServiceDomain "$domain" "")/" yq "$(getServiceKey "$service").environment.JELLYFIN_PublishedServerUrl = env(URL)" "$file" | sudo tee "$overrides" >/dev/null - for dir in "$root"/data/{downloads,config/{,jellyfin,flood,rtorrent,radarr,sonarr,lidarr,prowlarr},media/{,movies,series,music}} + for dir in "$root"/data/{downloads,config/{,jellyfin,flood,radarr,sonarr,lidarr,prowlarr},media/{,movies,series,music}} sudo mkdir -p "$dir" and chown -R $uid:$gid "$dir" end