From 39714324d95e985e5e13323c0e97d4f7c7c4bca0 Mon Sep 17 00:00:00 2001 From: Alexey Skobkin Date: Sat, 21 Sep 2024 02:42:14 +0300 Subject: [PATCH] transmission. Separating mount paths variables. Adding bind address variable. Renaming 'download' to 'downloads'. --- transmission/.env.dist | 6 +++++- transmission/docker-compose.yml | 4 ++-- transmission/{download => downloads}/.gitignore | 0 3 files changed, 7 insertions(+), 3 deletions(-) rename transmission/{download => downloads}/.gitignore (100%) diff --git a/transmission/.env.dist b/transmission/.env.dist index 6c6b0d2..c02f735 100644 --- a/transmission/.env.dist +++ b/transmission/.env.dist @@ -10,12 +10,16 @@ GROUP_ID=1000 #UMASK=022 P2P_PORT=6882 +#WEB_ADDRESS=127.0.0.1 WEB_PORT=9091 #NETWORK_MODE=host DIR_CONFIG=./config -DIR_DOWNLOAD=./download +DIR_DOWNLOAD_EXT=./downloads +DIR_DOWNLOAD_INT=/downloads +#DIR_TMP_DOWNLOAD_EXT=/path/to/unfinished/downloads +#IR_TMP_DOWNLOAD_INT=/downloads_tmp DIR_WATCH=./watch TIMEZONE=Europe/Moscow diff --git a/transmission/docker-compose.yml b/transmission/docker-compose.yml index 9f5a158..2e62e08 100644 --- a/transmission/docker-compose.yml +++ b/transmission/docker-compose.yml @@ -15,14 +15,14 @@ services: env_file: '.env' volumes: - '${DIR_CONFIG:-./config}:/config' - - '${DIR_DOWNLOAD:-./download}:/downloads' + - '${DIR_DOWNLOAD_EXT:-./downloads}:${DIR_DOWNLOAD_INT:-/downloads}' # Separate download cache directory in case you store unfinished torrents on SSD # Use with `"incomplete-dir-enabled": true` in the settings.json. This is `incomplete-dir` parameter. - '${DIR_TMP_DOWNLOAD:-/dev/null}:${DIR_TMP_DOWNLOAD:-/dev/null}' - '${DIR_WATCH:-./watch}:/watch' network_mode: '${NETWORK_MODE:-bridge}' ports: - - '${WEB_PORT:-9091}:${WEB_PORT:-9091}' + - '${WEB_ADDRESS:-0.0.0.0}:${WEB_PORT:-9091}:${WEB_PORT:-9091}' - '${P2P_PORT:-51413}:${P2P_PORT:-51413}' - '${P2P_PORT:-51413}:${P2P_PORT:-51413}/udp' restart: unless-stopped diff --git a/transmission/download/.gitignore b/transmission/downloads/.gitignore similarity index 100% rename from transmission/download/.gitignore rename to transmission/downloads/.gitignore