qbt features

This commit is contained in:
Anatolii Zimovskii 2022-05-30 17:46:30 +03:00
parent 9c4eb39de6
commit 03f36d0b61
Signed by: stam
GPG Key ID: AA3A575AB99E8469
4 changed files with 46 additions and 2 deletions

View File

@ -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"]

View File

@ -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"]

View File

@ -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
```

View File

@ -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}