mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2024-12-25 06:05:37 +03:00
qbt features
This commit is contained in:
parent
9c4eb39de6
commit
03f36d0b61
@ -8,6 +8,7 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|||||||
ENV QBT_DIR=/opt/qbittorrent
|
ENV QBT_DIR=/opt/qbittorrent
|
||||||
ENV QBT_PORT_WEBUI=8282
|
ENV QBT_PORT_WEBUI=8282
|
||||||
ENV QBT_PORT_TRACKER=9000
|
ENV QBT_PORT_TRACKER=9000
|
||||||
|
ENV QBT_PORT_NAT=1337
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Files and folders
|
# Files and folders
|
||||||
@ -53,7 +54,7 @@ COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
|
|||||||
RUN chmod 755 /usr/bin/docker-entrypoint.sh
|
RUN chmod 755 /usr/bin/docker-entrypoint.sh
|
||||||
|
|
||||||
#Final config
|
#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"]
|
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
|
||||||
CMD ["docker-entrypoint.sh"]
|
CMD ["docker-entrypoint.sh"]
|
||||||
|
@ -8,6 +8,7 @@ ARG DEBIAN_FRONTEND=noninteractive
|
|||||||
ENV QBT_DIR=/opt/qbittorrent
|
ENV QBT_DIR=/opt/qbittorrent
|
||||||
ENV QBT_PORT_WEBUI=8282
|
ENV QBT_PORT_WEBUI=8282
|
||||||
ENV QBT_PORT_TRACKER=9000
|
ENV QBT_PORT_TRACKER=9000
|
||||||
|
ENV QBT_PORT_NAT=1337
|
||||||
|
|
||||||
##################################################################
|
##################################################################
|
||||||
# Files and folders
|
# Files and folders
|
||||||
@ -53,7 +54,7 @@ COPY docker-entrypoint.sh /usr/bin/docker-entrypoint.sh
|
|||||||
RUN chmod 755 /usr/bin/docker-entrypoint.sh
|
RUN chmod 755 /usr/bin/docker-entrypoint.sh
|
||||||
|
|
||||||
#Final config
|
#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"]
|
ENTRYPOINT ["tini", "-s", "--", "docker-entrypoint.sh"]
|
||||||
CMD ["docker-entrypoint.sh"]
|
CMD ["docker-entrypoint.sh"]
|
||||||
|
@ -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.
|
All presented images avalible on our repo in docker hub.
|
||||||
|
|
||||||
* qbittorrent `latest`, `stable` and `unstable` images are also avalible here.
|
* 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
|
||||||
|
```
|
||||||
|
@ -1,8 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
|
: ${QBT_DIR:=/opt/qbittorrent}
|
||||||
: ${QBT_PROFILES_DIR:=/opt/qbittorrent/profiles}
|
: ${QBT_PROFILES_DIR:=/opt/qbittorrent/profiles}
|
||||||
: ${QBT_PROFILE_NAME:=docker}
|
: ${QBT_PROFILE_NAME:=docker}
|
||||||
: ${QBT_PORT_WEBUI:=8282}
|
: ${QBT_PORT_WEBUI:=8282}
|
||||||
|
: ${QBT_PORT_NAT:=1337}
|
||||||
: ${QBT_PORT_TRACKER:=9000}
|
: ${QBT_PORT_TRACKER:=9000}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user