109 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			109 lines
		
	
	
		
			3.0 KiB
		
	
	
	
		
			YAML
		
	
	
	
	
	
| #
 | |
| #
 | |
| #############################################################################
 | |
| # qBittorrent - A Qbittorrent container, brought to you by LinuxServer.io. 
 | |
| #############################################################################
 | |
| #
 | |
| #
 | |
| #   Make sure to set the folling variables. 
 | |
| #       <USERNAME>
 | |
| #       <SERVER IP ADDRESS> 
 | |
| #       <PROVIDER NAME>
 | |
| #       <PROVIDER USERNAME>
 | |
| #       <PROVIDER PASSWORD>
 | |
| #
 | |
| #
 | |
| 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.55:8124 || exit 1
 | |
|       test: curl -sf http://<SERVER IP ADDRESS>: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 Info
 | |
|       - OPENVPN_PROVIDER=<PROVIDER NAME>
 | |
|       - OPENVPN_USERNAME=<PROVIDER USERNAME>
 | |
|       - OPENVPN_PASSWORD=<PROVIDER PASSWORD>
 | |
|       - OPENVPN_CONFIG=default
 | |
|       
 | |
|       - LOCAL_NETWORK=192.168.1.0/24    
 | |
| 
 | |
| 
 |