From ab8bcd805ebe71b5f1d169b70cc4d2dabbb0ecc7 Mon Sep 17 00:00:00 2001 From: Eugene Amos Date: Sun, 26 Nov 2023 22:17:10 -0800 Subject: [PATCH] qbittorrent | adding files > added new files to repo --- qbittorrent/docker-compose-qbittorrent.yml | 102 +++++++++++++++++++++ qbittorrent/extra_packages.sh | 39 ++++++++ 2 files changed, 141 insertions(+) create mode 100644 qbittorrent/docker-compose-qbittorrent.yml create mode 100644 qbittorrent/extra_packages.sh diff --git a/qbittorrent/docker-compose-qbittorrent.yml b/qbittorrent/docker-compose-qbittorrent.yml new file mode 100644 index 0000000..f133675 --- /dev/null +++ b/qbittorrent/docker-compose-qbittorrent.yml @@ -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//downloads:/downloads + + # location for the config files. + - /home//docker/qbittorrent:/config + + # location for the custom install script. + - /home//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//docker/qbittorrent-openvpn/data:/data + - /home//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 + + diff --git a/qbittorrent/extra_packages.sh b/qbittorrent/extra_packages.sh new file mode 100644 index 0000000..550c0f4 --- /dev/null +++ b/qbittorrent/extra_packages.sh @@ -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 "**"