Init Dockerfile & docker-compose
This commit is contained in:
parent
43e823b1ec
commit
86bc8b28e3
|
@ -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"]
|
|
@ -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>"
|
Reference in New Issue