From 9e996c41e100946fbcffaec4a193953573c90d41 Mon Sep 17 00:00:00 2001 From: Marc Cataford Date: Sat, 3 Dec 2022 14:36:00 -0500 Subject: [PATCH] feat: abstract persistent paths, add completed downloads loc (#12) --- deluge/.env | 7 +++++++ deluge/.gitignore | 1 + deluge/docker-compose.yml | 7 ++++--- 3 files changed, 12 insertions(+), 3 deletions(-) create mode 100644 deluge/.env create mode 100644 deluge/.gitignore diff --git a/deluge/.env b/deluge/.env new file mode 100644 index 0000000..a57643d --- /dev/null +++ b/deluge/.env @@ -0,0 +1,7 @@ +# Download target +DOWNLOADS_ROOT=${APP_STORAGE_ROOT:-.}/deluge/downloads + +# Configuration data +CONFIG_ROOT=${APP_STORAGE_ROOT:-.}/deluge/config + +COMPLETED_DOWNLOADS_ROOT=${DATA_STORAGE_ROOT:-./} diff --git a/deluge/.gitignore b/deluge/.gitignore new file mode 100644 index 0000000..ad5fdbf --- /dev/null +++ b/deluge/.gitignore @@ -0,0 +1 @@ +deluge diff --git a/deluge/docker-compose.yml b/deluge/docker-compose.yml index ff5b83b..746231e 100644 --- a/deluge/docker-compose.yml +++ b/deluge/docker-compose.yml @@ -1,4 +1,4 @@ -version: "2.1" +version: "3.7" services: deluge: image: lscr.io/linuxserver/deluge:latest @@ -6,8 +6,9 @@ services: environment: - TZ=America/Toronto volumes: - - ./config:/config - - ./downloads:/downloads + - ${DOWNLOADS_ROOT}:/config + - ${CONFIG_ROOT}:/downloads + - ${COMPLETED_DOWNLOADS_ROOT}:/complete ports: - 8112:8112 - 6881:6881