Normalize docker volume paths

This commit is contained in:
Manuel Thalmann 2024-12-04 16:52:32 +01:00
parent 0413612bce
commit 5384b38613
4 changed files with 20 additions and 20 deletions

View file

@ -32,7 +32,7 @@ services:
MARIADB_RANDOM_ROOT_PASSWORD: "yes" MARIADB_RANDOM_ROOT_PASSWORD: "yes"
MARIADB_AUTO_UPGRADE: "yes" MARIADB_AUTO_UPGRADE: "yes"
volumes: volumes:
- ./database:/var/lib/mysql - ./data/db:/var/lib/mysql
command: command:
- --character-set-server=utf8mb4 - --character-set-server=utf8mb4
- --collation-server=utf8mb4_unicode_ci - --collation-server=utf8mb4_unicode_ci

View file

@ -5,9 +5,9 @@ services:
user: 1337:1337 user: 1337:1337
hostname: Jellyfin hostname: Jellyfin
volumes: volumes:
- ./config/jellyfin:/config - ./data/config/jellyfin:/config
- cache:/cache - cache:/cache
- ./media:/media - ./data/media:/media
radarr: radarr:
image: linuxserver/radarr image: linuxserver/radarr
restart: unless-stopped restart: unless-stopped
@ -16,9 +16,9 @@ services:
PGID: 1337 PGID: 1337
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- ./config/radarr:/config - ./data/config/radarr:/config
- ./media/movies:/movies - ./data/media/movies:/movies
- ./downloads:/downloads - ./data/downloads:/downloads
sonarr: sonarr:
image: linuxserver/sonarr image: linuxserver/sonarr
restart: unless-stopped restart: unless-stopped
@ -27,9 +27,9 @@ services:
PGID: 1337 PGID: 1337
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- ./config/sonarr:/config - ./data/config/sonarr:/config
- ./media/series:/tv - ./data/media/series:/tv
- ./downloads:/downloads - ./data/downloads:/downloads
lidarr: lidarr:
image: linuxserver/lidarr image: linuxserver/lidarr
restart: unless-stopped restart: unless-stopped
@ -38,9 +38,9 @@ services:
PGID: 1337 PGID: 1337
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- ./config/lidarr:/config - ./data/config/lidarr:/config
- ./media/music:/music - ./data/media/music:/music
- ./downloads:/downloads - ./data/downloads:/downloads
prowlarr: prowlarr:
image: linuxserver/prowlarr image: linuxserver/prowlarr
restart: unless-stopped restart: unless-stopped
@ -49,7 +49,7 @@ services:
PGID: 1337 PGID: 1337
volumes: volumes:
- /etc/localtime:/etc/localtime:ro - /etc/localtime:/etc/localtime:ro
- ./config/prowlarr:/config - ./data/config/prowlarr:/config
flaresolverr: flaresolverr:
image: flaresolverr/flaresolverr image: flaresolverr/flaresolverr
restart: unless-stopped restart: unless-stopped
@ -79,9 +79,9 @@ services:
--allowedpath /downloads --allowedpath /downloads
--rtsocket /rtorrent/.local/share/rtorrent/rtorrent.sock --rtsocket /rtorrent/.local/share/rtorrent/rtorrent.sock
volumes: volumes:
- ./config/flood:/flood - ./data/config/flood:/flood
- ./downloads:/downloads - ./data/downloads:/downloads
- ./config/rtorrent:/rtorrent - ./data/config/rtorrent:/rtorrent
rtorrent: rtorrent:
build: build:
dockerfile: ./rtorrent.Dockerfile dockerfile: ./rtorrent.Dockerfile
@ -100,8 +100,8 @@ 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
- ./config/rtorrent:/config - ./data/config/rtorrent:/config
- ./downloads:/downloads - ./data/downloads:/downloads
- ./data/proton:/proton - ./data/proton:/proton
devices: devices:
- /dev/net/tun - /dev/net/tun

View file

@ -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"/{downloads,config/{,jellyfin,flood,rtorrent,radarr,sonarr,lidarr,prowlarr},media/{,movies,series,music}} for dir in "$root"/data/{downloads,config/{,jellyfin,flood,rtorrent,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

View file

@ -8,4 +8,4 @@ services:
image: postgres image: postgres
restart: unless-stopped restart: unless-stopped
volumes: volumes:
- ./database:/var/lib/postgresql/data - ./data/db:/var/lib/postgresql/data