34 lines
1.2 KiB
YAML
34 lines
1.2 KiB
YAML
services:
|
|
transmission:
|
|
image: 'lscr.io/linuxserver/transmission:${IMAGE_TAG:-latest}'
|
|
container_name: 'transmission'
|
|
environment:
|
|
- 'PUID=${USER_ID:-1000}'
|
|
- 'PGID=${GROUP_ID:-1000}'
|
|
- 'TZ=${TIMEZONE:-Europe/Moscow}'
|
|
#- TRANSMISSION_WEB_HOME= #optional
|
|
- 'USER=${AUTH_USER}'
|
|
- 'PASS=${AUTH_PASSWORD}'
|
|
#- WHITELIST= #optional
|
|
- 'PEERPORT=${P2P_PORT:-6882}'
|
|
#- HOST_WHITELIST= #optional
|
|
env_file: '.env'
|
|
volumes:
|
|
- '${DIR_CONFIG:-./config}:/config'
|
|
- '${DIR_DOWNLOAD:-./download}:/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}'
|
|
- '${P2P_PORT:-51413}:${P2P_PORT:-51413}'
|
|
- '${P2P_PORT:-51413}:${P2P_PORT:-51413}/udp'
|
|
restart: unless-stopped
|
|
logging:
|
|
driver: 'json-file'
|
|
options:
|
|
max-size: '${LOG_MAX_SIZE:-5m}'
|
|
max-file: '${LOG_MAX_FILE:-5}'
|