docker-stacks/transmission/docker-compose.yml

34 lines
1.3 KiB
YAML
Raw Normal View History

2024-09-20 20:34:39 +00:00
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_EXT:-./config}:/config'
- '${DIR_DOWNLOAD_EXT:-./downloads}:${DIR_DOWNLOAD_INT:-/downloads}'
2024-09-20 20:34:39 +00:00
# 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_EXT:-./watch}:/watch'
2024-09-20 20:34:39 +00:00
network_mode: '${NETWORK_MODE:-bridge}'
ports:
- '${WEB_ADDRESS:-0.0.0.0}:${WEB_PORT:-9091}:${WEB_PORT:-9091}'
2024-09-20 20:34:39 +00:00
- '${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}'