transmission. Separating mount paths variables. Adding bind address variable. Renaming 'download' to 'downloads'.

This commit is contained in:
Alexey Skobkin 2024-09-21 02:42:14 +03:00
parent 1be823c720
commit 39714324d9
No known key found for this signature in database
GPG key ID: 5D5CEF6F221278E7
3 changed files with 7 additions and 3 deletions

View file

@ -10,12 +10,16 @@ GROUP_ID=1000
#UMASK=022 #UMASK=022
P2P_PORT=6882 P2P_PORT=6882
#WEB_ADDRESS=127.0.0.1
WEB_PORT=9091 WEB_PORT=9091
#NETWORK_MODE=host #NETWORK_MODE=host
DIR_CONFIG=./config 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 DIR_WATCH=./watch
TIMEZONE=Europe/Moscow TIMEZONE=Europe/Moscow

View file

@ -15,14 +15,14 @@ services:
env_file: '.env' env_file: '.env'
volumes: volumes:
- '${DIR_CONFIG:-./config}:/config' - '${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 # 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. # 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_TMP_DOWNLOAD:-/dev/null}:${DIR_TMP_DOWNLOAD:-/dev/null}'
- '${DIR_WATCH:-./watch}:/watch' - '${DIR_WATCH:-./watch}:/watch'
network_mode: '${NETWORK_MODE:-bridge}' network_mode: '${NETWORK_MODE:-bridge}'
ports: 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}'
- '${P2P_PORT:-51413}:${P2P_PORT:-51413}/udp' - '${P2P_PORT:-51413}:${P2P_PORT:-51413}/udp'
restart: unless-stopped restart: unless-stopped