From a4088f706dde18cad6a8f3c73358e17db3084677 Mon Sep 17 00:00:00 2001 From: Adrien Poupa Date: Sat, 16 Apr 2022 17:53:29 -0400 Subject: [PATCH] feat: Parametrize the data and torrent paths --- .env.example | 2 ++ docker-compose.yml | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index d1292bb..18baaee 100644 --- a/.env.example +++ b/.env.example @@ -1,6 +1,8 @@ USER_ID=1000 GROUP_ID=1000 TIMEZONE="America/New_York" +DATA_ROOT="/mnt/data" +DOWNLOAD_ROOT="/mnt/data/torrents" PIA_LOCATION=ca PIA_USER= PIA_PASS= diff --git a/docker-compose.yml b/docker-compose.yml index bdfcb84..c10eace 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,7 +8,7 @@ services: - PGID=${GROUP_ID} volumes: - ./sonarr:/config - - /mnt/data:/data + - ${DATA_ROOT}:/data ports: - "8989:8989" restart: unless-stopped @@ -20,7 +20,7 @@ services: - PGID=${GROUP_ID} volumes: - ./radarr:/config - - /mnt/data:/data + - ${DATA_ROOT}:/data ports: - "7878:7878" restart: unless-stopped @@ -45,7 +45,7 @@ services: - WEBUI_PORT=8080 volumes: - ./qbittorrent:/config - - /mnt/data/torrents:/data/torrents + - ${DOWNLOAD_ROOT}:/data/torrents restart: unless-stopped network_mode: "service:vpn" depends_on: