Store rtorrent session files in volume

This commit is contained in:
Manuel Thalmann 2024-12-04 16:53:24 +01:00
parent e4a41b6903
commit c9e1ecac9d
2 changed files with 4 additions and 3 deletions

View file

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

View file

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