4
1
Fork 1

Init Dockerfile & docker-compose

This commit is contained in:
trueold89 2023-10-31 03:49:36 +03:00
parent 43e823b1ec
commit 86bc8b28e3
Signed by: trueold89
GPG Key ID: C122E85DD49E6B30
5 changed files with 23 additions and 0 deletions

9
Dockerfile Normal file
View File

@ -0,0 +1,9 @@
FROM alpine:latest
COPY bot /opt/bot
RUN apk update && apk add bash python3 py-pip wget icu-libs krb5-libs libgcc libintl libssl1.1 libstdc++ zlib && pip install telebot
RUN wget https://github.com/fedarovich/qbittorrent-cli/releases/download/v1.7.22315.1/qbt-linux-alpine-x64-1.7.22315.1.tar.gz && \
mkdir /opt/qbt && \
tar -zxf qbt-linux-alpine-x64-1.7.22315.1.tar.gz -C /opt/qbt && \
chmod a+x /opt/qbt/* && \
ln -sf /opt/qbt/qbt /bin/qbt && ln -sf /opt/bot/bot.py /bin/bot
ENTRYPOINT ["/bin/bot"]

View File

View File

14
docker-compose.yml Normal file
View File

@ -0,0 +1,14 @@
services:
qbitdl_bot:
image: <YOUR_IMAGE_HERE>
container_name: qbitdl_bot
volumes:
- /path/to/config:/etc/bot
- /path/to/data/:/path/to/data
restart: 'unless-stopped'
environment:
TOKEN: "<YOUR_BOT_TOKEN_HERE>"
PASS: "change_me"
QURL: "<http://<YOUR_QBIT_SERVER_IP_HERE>:<PORT>"
QUSER: "<YOUR_QBIT_USERNAME>"
QPASS: "<YOUR_QBIT_PASSWORD>"