mirror of
https://github.com/nickyeoman/docker-compose-cookbooks.git
synced 2026-09-04 02:46:23 +00:00
added qbittorrent with wireguard
This commit is contained in:
@@ -0,0 +1,14 @@
|
|||||||
|
# qbittorrent
|
||||||
|
|
||||||
|
https://github.com/Trigus42/alpine-qbittorrentvpn
|
||||||
|
|
||||||
|
## WireGuard
|
||||||
|
|
||||||
|
The container will fail to boot if VPN_ENABLED is set and there is no valid INTERFACE.conf file present in the /config/wireguard directory. Drop a .conf file from your VPN provider into /config/wireguard and start the container again.
|
||||||
|
|
||||||
|
Recommended INTERFACE names include wg0 or wgvpn0 or even wgmgmtlan0. However, the number at the end is in fact optional, and really any free-form string [a-zA-Z0-9_=+.-]{1,15} will work. So even interface names corresponding to geographic locations would suffice, such as cincinnati, nyc, or paris, if that's somehow desirable. [source]
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
## Ensure Permissions
|
||||||
|
chmod 600 /path/to/wg0.conf
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
version: "3.3"
|
||||||
|
|
||||||
|
# Username Admin
|
||||||
|
|
||||||
|
services:
|
||||||
|
qbittorrent:
|
||||||
|
image: trigus42/qbittorrentvpn
|
||||||
|
container_name: qbittorrent
|
||||||
|
environment:
|
||||||
|
- VPN_TYPE=wireguard
|
||||||
|
- WEBUI_PASSWORD=${QBIT_PASSWORD:-ChangeMePass}
|
||||||
|
volumes:
|
||||||
|
- './data/config/:/config'
|
||||||
|
- './data/downloads/:/downloads'
|
||||||
|
- './data/incomplete/:/incomplete'
|
||||||
|
- '/dev/net/tun:/dev/net/tun'
|
||||||
|
ports:
|
||||||
|
- 8080:8080
|
||||||
|
restart: unless-stopped
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
sysctls:
|
||||||
|
- net.ipv4.conf.all.src_valid_mark=1
|
||||||
Reference in New Issue
Block a user