Store rtorrent
session files in volume
This commit is contained in:
parent
5384b38613
commit
e0f4c7e74a
2 changed files with 4 additions and 3 deletions
|
@ -81,7 +81,7 @@ services:
|
||||||
volumes:
|
volumes:
|
||||||
- ./data/config/flood:/flood
|
- ./data/config/flood:/flood
|
||||||
- ./data/downloads:/downloads
|
- ./data/downloads:/downloads
|
||||||
- ./data/config/rtorrent:/rtorrent
|
- rtorrent:/rtorrent
|
||||||
rtorrent:
|
rtorrent:
|
||||||
build:
|
build:
|
||||||
dockerfile: ./rtorrent.Dockerfile
|
dockerfile: ./rtorrent.Dockerfile
|
||||||
|
@ -100,7 +100,7 @@ services:
|
||||||
-o 'method.set=group.seeding.ratio.command, "d.cloase = ; d.erase = "'
|
-o 'method.set=group.seeding.ratio.command, "d.cloase = ; d.erase = "'
|
||||||
volumes:
|
volumes:
|
||||||
- /etc/localtime:/etc/localtime:ro
|
- /etc/localtime:/etc/localtime:ro
|
||||||
- ./data/config/rtorrent:/config
|
- rtorrent:/config
|
||||||
- ./data/downloads:/downloads
|
- ./data/downloads:/downloads
|
||||||
- ./data/proton:/proton
|
- ./data/proton:/proton
|
||||||
devices:
|
devices:
|
||||||
|
@ -139,3 +139,4 @@ services:
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
cache: {}
|
cache: {}
|
||||||
|
rtorrent: {}
|
||||||
|
|
|
@ -66,7 +66,7 @@ begin
|
||||||
URL="https://$(getServiceDomain "$domain" "")/" yq "$(getServiceKey "$service").environment.JELLYFIN_PublishedServerUrl = env(URL)" "$file" |
|
URL="https://$(getServiceDomain "$domain" "")/" yq "$(getServiceKey "$service").environment.JELLYFIN_PublishedServerUrl = env(URL)" "$file" |
|
||||||
sudo tee "$overrides" >/dev/null
|
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"
|
sudo mkdir -p "$dir"
|
||||||
and chown -R $uid:$gid "$dir"
|
and chown -R $uid:$gid "$dir"
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue