qbittorrent. Initial configuration added.

This commit is contained in:
Alexey Skobkin 2021-10-20 03:26:24 +03:00
parent 1b50a7b8be
commit 91b743ac5a
4 changed files with 41 additions and 0 deletions

17
qbittorrent/.env.dist Normal file
View File

@ -0,0 +1,17 @@
# User/Group mappings
PGID=1000
PUID=1000
TZ=Europe/Moscow
# Web interface port
WEBUI_PORT=8090
# Volume mapping
CONFIG_PATH=./config
# This will be the same inside and outside of a container
DOWNLOAD_PATH=/mnt/downloads
# Logs
LOG_MAX_SIZE=5m
LOG_MAX_FILE=5

2
qbittorrent/.gitignore vendored Normal file
View File

@ -0,0 +1,2 @@
config/*
!config/.gitkeep

View File

View File

@ -0,0 +1,22 @@
version: '3.7'
services:
qbittorrent:
# https://hub.docker.com/r/linuxserver/qbittorrent
image: linuxserver/qbittorrent:latest
container_name: qbittorrent
#network_mode: "host"
ports:
- "${WEBUI_PORT}:${WEBUI_PORT}/tcp"
- "6881:6881/tcp"
- "6881:6881/udp"
env_file: .env
volumes:
- "${CONFIG_PATH}:/config"
- "${DOWNLOAD_PATH}:${DOWNLOAD_PATH}"
restart: unless-stopped
logging:
driver: "json-file"
options:
max-size: "${LOG_MAX_SIZE:-5m}"
max-file: "${LOG_MAX_FILE:-5}"