added wireguard
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user