qbittorrent | adding files
> added new files to repo
This commit is contained in:
parent
790b3aff4c
commit
ab8bcd805e
102
qbittorrent/docker-compose-qbittorrent.yml
Normal file
102
qbittorrent/docker-compose-qbittorrent.yml
Normal file
@ -0,0 +1,102 @@
|
|||||||
|
#
|
||||||
|
#
|
||||||
|
#############################################################################
|
||||||
|
# qBittorrent - A Qbittorrent container, brought to you by LinuxServer.io.
|
||||||
|
#############################################################################
|
||||||
|
#
|
||||||
|
#
|
||||||
|
services:
|
||||||
|
qbittorrent:
|
||||||
|
image: linuxserver/qbittorrent:latest
|
||||||
|
container_name: qbittorrent
|
||||||
|
restart: unless-stopped
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
volumes:
|
||||||
|
# will give qbittorrent access to any location on server
|
||||||
|
- /home:/home
|
||||||
|
|
||||||
|
# can be mapped to any folder on your server
|
||||||
|
- /home/<USERNAME>/downloads:/downloads
|
||||||
|
|
||||||
|
# location for the config files.
|
||||||
|
- /home/<USERNAME>/docker/qbittorrent:/config
|
||||||
|
|
||||||
|
# location for the custom install script.
|
||||||
|
- /home/<USERNAME>/docker/qbittorrent/custom_scripts:/custom-cont-init.d:ro
|
||||||
|
|
||||||
|
# Ports are managed in qbittorrent-openvpn container.
|
||||||
|
#ports:
|
||||||
|
#- 8124:8124/tcp # web port
|
||||||
|
#- 6881:6881/tcp # tcp connection port
|
||||||
|
#- 6881:6881/udp # udp connection port
|
||||||
|
environment:
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
- TZ=America/Los_Angeles
|
||||||
|
- UMASK=0002
|
||||||
|
- WEBUI_PORT=8124
|
||||||
|
healthcheck:
|
||||||
|
# change this ip addrss to match your server. Mine is below as an example
|
||||||
|
#test: curl -sf http://192.168.1.59:8124 || exit 1
|
||||||
|
test: curl -sf http://192.168.1.59:8124 || exit 1
|
||||||
|
interval: 60s
|
||||||
|
timeout: 30s
|
||||||
|
retries: 3
|
||||||
|
logging:
|
||||||
|
driver: json-file
|
||||||
|
options:
|
||||||
|
max-size: "700k"
|
||||||
|
max-file: "14"
|
||||||
|
labels:
|
||||||
|
com.centurylinklabs.watchtower.depends-on: "qbittorrent-openvpn"
|
||||||
|
network_mode: "service:qbittorrent-openvpn"
|
||||||
|
depends_on:
|
||||||
|
qbittorrent-openvpn:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
|
|
||||||
|
qbittorrent-openvpn:
|
||||||
|
image: haugene/transmission-openvpn
|
||||||
|
container_name: qbittorrent-openvpn
|
||||||
|
restart: unless-stopped
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
volumes:
|
||||||
|
- /home/<USERNAME>/docker/qbittorrent-openvpn/data:/data
|
||||||
|
- /home/<USERNAME>/docker/qbittorrent-openvpn/config:/config
|
||||||
|
ports:
|
||||||
|
- 8124:8124/tcp # qbittorrent web port
|
||||||
|
- 6881:6881/tcp # qbittorrent tcp connection port
|
||||||
|
- 6881:6881/udp # qbittorrent udp connection port
|
||||||
|
labels:
|
||||||
|
autoheal: "true"
|
||||||
|
autoheal.restart: "true"
|
||||||
|
healthcheck:
|
||||||
|
test: curl -sf http://example.com || exit 1
|
||||||
|
interval: 60s
|
||||||
|
timeout: 30s
|
||||||
|
retries: 3
|
||||||
|
environment:
|
||||||
|
|
||||||
|
- TZ=America/Los_Angeles
|
||||||
|
|
||||||
|
- PUID=1000
|
||||||
|
- PGID=1000
|
||||||
|
|
||||||
|
- CREATE_TUN_DEVICE=true
|
||||||
|
|
||||||
|
# Checks google every 5 min to see if container is active.
|
||||||
|
- HEALTH_CHECK_HOST=https://google.com
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
- OPENVPN_PROVIDER=PRIVADO
|
||||||
|
- OPENVPN_USERNAME=nhbcimfitlzu
|
||||||
|
- OPENVPN_PASSWORD=oMky&z%xpDX3#
|
||||||
|
- OPENVPN_CONFIG=default
|
||||||
|
|
||||||
|
- LOCAL_NETWORK=192.168.1.0/24
|
||||||
|
#- LOCAL_NETWORK=192.168.1.59
|
||||||
|
|
||||||
|
|
39
qbittorrent/extra_packages.sh
Normal file
39
qbittorrent/extra_packages.sh
Normal file
@ -0,0 +1,39 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
#
|
||||||
|
# qbittorrent-api pip3 package for Alpine Linux
|
||||||
|
# https://pkgs.alpinelinux.org/package/edge/testing/x86_64/py3-qbittorrent-api-pyc
|
||||||
|
#
|
||||||
|
#
|
||||||
|
echo "**"
|
||||||
|
echo "**"
|
||||||
|
echo "**"
|
||||||
|
echo "**"
|
||||||
|
echo "*******************************************"
|
||||||
|
echo "**** Adding the edge repo to the build ****"
|
||||||
|
echo "*******************************************"
|
||||||
|
echo "**"
|
||||||
|
# Add the "edge" testing repository
|
||||||
|
echo "http://dl-cdn.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories
|
||||||
|
echo "*******************************"
|
||||||
|
echo "**** Updating Alpine Linux ****"
|
||||||
|
echo "*******************************"
|
||||||
|
# Update the package list
|
||||||
|
apk update
|
||||||
|
echo "*********************************************************"
|
||||||
|
echo "**** Installing python3 and py3-pip for Alpine Linux ****"
|
||||||
|
echo "*********************************************************"
|
||||||
|
# Install Python and pip
|
||||||
|
apk add python3 py3-pip
|
||||||
|
echo "************************************************************************"
|
||||||
|
echo "**** Install qbittorrent-api thats in the edge repo of Alpine Linux ****"
|
||||||
|
echo "************************************************************************"
|
||||||
|
# Install qbittorrent-api
|
||||||
|
apk add py3-qbittorrent-api
|
||||||
|
echo "**"
|
||||||
|
echo "*********************************************************"
|
||||||
|
echo "**** done installing extra_packages for Alpine Linux ****"
|
||||||
|
echo "*********************************************************"
|
||||||
|
echo "**"
|
||||||
|
echo "**"
|
||||||
|
echo "**"
|
||||||
|
echo "**"
|
Loading…
x
Reference in New Issue
Block a user