diff --git a/linux/ecosystem/qbittorrent/Dockerfile b/linux/ecosystem/qbittorrent/Dockerfile index a6eaf111c..a88c0c983 100644 --- a/linux/ecosystem/qbittorrent/Dockerfile +++ b/linux/ecosystem/qbittorrent/Dockerfile @@ -8,6 +8,7 @@ ARG DEBIAN_FRONTEND=noninteractive ENV QBT_DIR=/opt/qbittorrent ENV QBT_PORT_WEBUI=8282 ENV QBT_PORT_TRACKER=9000 +ENV QBT_PORT_NAT=1337 ################################################################## # Files and folders @@ -53,7 +54,7 @@ COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh RUN chmod 755 /usr/bin/docker-entrypoint.sh #Final config -EXPOSE ${QBT_PORT_WEBUI} ${QBT_PORT_WEBUI}/udp ${QBT_PORT_TRACKER} ${QBT_PORT_TRACKER}/udp +EXPOSE ${QBT_PORT_WEBUI} ${QBT_PORT_WEBUI}/udp ${QBT_PORT_NAT} ${QBT_PORT_NAT}/udp ${QBT_PORT_TRACKER} ${QBT_PORT_TRACKER}/udp ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"] CMD ["docker-entrypoint.sh"] diff --git a/linux/ecosystem/qbittorrent/Dockerfile.stable b/linux/ecosystem/qbittorrent/Dockerfile.stable index 29801b960..88c840e7e 100644 --- a/linux/ecosystem/qbittorrent/Dockerfile.stable +++ b/linux/ecosystem/qbittorrent/Dockerfile.stable @@ -8,6 +8,7 @@ ARG DEBIAN_FRONTEND=noninteractive ENV QBT_DIR=/opt/qbittorrent ENV QBT_PORT_WEBUI=8282 ENV QBT_PORT_TRACKER=9000 +ENV QBT_PORT_NAT=1337 ################################################################## # Files and folders @@ -53,7 +54,7 @@ COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh RUN chmod 755 /usr/bin/docker-entrypoint.sh #Final config -EXPOSE ${QBT_PORT_WEBUI} ${QBT_PORT_WEBUI}/udp ${QBT_PORT_TRACKER} ${QBT_PORT_TRACKER}/udp +EXPOSE ${QBT_PORT_WEBUI} ${QBT_PORT_WEBUI}/udp ${QBT_PORT_NAT} ${QBT_PORT_NAT}/udp ${QBT_PORT_TRACKER} ${QBT_PORT_TRACKER}/udp ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"] CMD ["docker-entrypoint.sh"] diff --git a/linux/ecosystem/qbittorrent/README.md b/linux/ecosystem/qbittorrent/README.md index a0ecbf65b..5122c469f 100644 --- a/linux/ecosystem/qbittorrent/README.md +++ b/linux/ecosystem/qbittorrent/README.md @@ -8,3 +8,43 @@ The [Qbittorrent](https://www.qbittorrent.org/) project aims to provide an open- All presented images avalible on our repo in docker hub. * qbittorrent `latest`, `stable` and `unstable` images are also avalible here. + +### Environments + +````` +QBT_PROFILES_DIR=/opt/qbittorrent/profiles +QBT_PROFILE_NAME=docker +QBT_PORT_WEBUI=8282 +QBT_PORT_NAT=1337 +QBT_PORT_TRACKER=9000 +````` + +### Exampe + +``` yaml +version: '3.9' +services: + qbittorrent: + image: epicmorg/qbittorrent:latest + container_name: qbittorrent + hostname: qbittorrent + restart: always + ports: + - "8282:8282" + - "1337:1337/udp" + - "1337:1337/tcp" + - "9000:9000/udp" + - "9000:9000/tcp" + cap_add: + - ALL + volumes: + - /etc/letsencrypt:/etc/letsencrypt + - /opt/docker/data/qbt/profiles:/opt/qbittorrent/profiles + environment: + - QBT_PROFILE_NAME=docker + - QBT_PORT_WEBUI=8282 + - QBT_PORT_NAT=1337 + - QBT_PORT_TRACKER=9000 + tmpfs: + - /tmp +``` diff --git a/linux/ecosystem/qbittorrent/docker-entrypoint.sh b/linux/ecosystem/qbittorrent/docker-entrypoint.sh index 191e15a21..09fb4c4bc 100755 --- a/linux/ecosystem/qbittorrent/docker-entrypoint.sh +++ b/linux/ecosystem/qbittorrent/docker-entrypoint.sh @@ -1,8 +1,10 @@ #!/bin/bash +: ${QBT_DIR:=/opt/qbittorrent} : ${QBT_PROFILES_DIR:=/opt/qbittorrent/profiles} : ${QBT_PROFILE_NAME:=docker} : ${QBT_PORT_WEBUI:=8282} +: ${QBT_PORT_NAT:=1337} : ${QBT_PORT_TRACKER:=9000}