From b3bd53fddc11975cc5477385b961343d4aa9ee4a Mon Sep 17 00:00:00 2001 From: server Date: Tue, 2 Jan 2024 01:04:32 +0000 Subject: [PATCH] added wireguard --- qBittorrent/docker-compose.yml | 35 +++++++++++++++++++++++----------- 1 file changed, 24 insertions(+), 11 deletions(-) diff --git a/qBittorrent/docker-compose.yml b/qBittorrent/docker-compose.yml index 8ffced1..4a50515 100644 --- a/qBittorrent/docker-compose.yml +++ b/qBittorrent/docker-compose.yml @@ -1,21 +1,34 @@ --- version: '3' services: - qbittorrent-nox: + qbittorrent: image: qbittorrentofficial/qbittorrent-nox:latest container_name: qbittorrent-nox + restart: unless-stopped environment: - - QBT_EULA=true - - QBT_VERSION=latest - QBT_WEBUI_PORT=6882 + - QBT_VERSION=latest + - QBT_EULA=true + volumes: + - ./qbit-config:/config + - ../../documents/downloads:/downloads + network_mode: host + depends_on: + - vpn + vpn: + image: lscr.io/linuxserver/wireguard:latest + container_name: wireguard + restart: unless-stopped + cap_add: + - NET_ADMIN + environment: + - PUID=1000 + - PGID=1000 + - TZ=America/Denver + - SERVERPORT=51820 #optional + - LOG_CONFS=true #optional volumes: - ./config:/config - # I like setting this to somewhere FileBrowser can see - - ./downloads:/downloads - restart: unless-stopped - # With network_mode set to host you can access VPN - # interfaces setup on your local (as in the machine running docker) machine. - # You could also pair this with a Wireguard container and do internal - # networking for potentially more security. network_mode: host - + # sysctls: + # - net.ipv4.conf.all.src_valid_mark=1