diff --git a/qbittorrent/.env.dist b/qbittorrent/.env.dist new file mode 100644 index 0000000..78160fc --- /dev/null +++ b/qbittorrent/.env.dist @@ -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 diff --git a/qbittorrent/.gitignore b/qbittorrent/.gitignore new file mode 100644 index 0000000..a8a8e63 --- /dev/null +++ b/qbittorrent/.gitignore @@ -0,0 +1,2 @@ +config/* +!config/.gitkeep \ No newline at end of file diff --git a/qbittorrent/config/.gitkeep b/qbittorrent/config/.gitkeep new file mode 100644 index 0000000..e69de29 diff --git a/qbittorrent/docker-compose.yml b/qbittorrent/docker-compose.yml new file mode 100644 index 0000000..781dc24 --- /dev/null +++ b/qbittorrent/docker-compose.yml @@ -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}"