services: add downloader stack
This commit is contained in:
parent
e22588fd6b
commit
8e6010d7a2
8
services/downloader/.env
Normal file
8
services/downloader/.env
Normal file
@ -0,0 +1,8 @@
|
||||
GLUETUN_CONFIG_PATH="/home/vm-user/local-apps/gluetun"
|
||||
QBIT_TORRENT_CONFIG_PATH="/home/vm-user/local-apps/qbittorrent/config"
|
||||
QBIT_TORRENT_DOWNLOADS_PATH="/home/vm-user/Media/Downloads/qbit"
|
||||
VPN_SERVICE_PROVIDER="mullvad"
|
||||
VPN_TYPE="wireguard"
|
||||
WIREGUARD_PRIVATE_KEY="E87BEkEcymPcnwBQMUp/Q71VlhTUx5oJ8US26vncAWc="
|
||||
WIREGUARD_ADDRESSES="10.75.193.171/32"
|
||||
SERVER_COUNTRIES="Switzerland"
|
||||
35
services/downloader/docker-compose.yml
Normal file
35
services/downloader/docker-compose.yml
Normal file
@ -0,0 +1,35 @@
|
||||
version: "3"
|
||||
services:
|
||||
gluetun:
|
||||
image: qmcgaw/gluetun
|
||||
container_name: gluetun
|
||||
cap_add:
|
||||
- NET_ADMIN
|
||||
devices:
|
||||
- /dev/net/tun:/dev/net/tun
|
||||
ports:
|
||||
- ${SVC_PORT_1}:${SVC_PORT_1} # Qbittorent
|
||||
- ${SVC_PORT_2}:${SVC_PORT_2} # Torrent
|
||||
- ${SVC_PORT_2}:${SVC_PORT_2}/udp # Torrent
|
||||
volumes:
|
||||
- ${GLUETUN_CONFIG_PATH}:/gluetun
|
||||
environment:
|
||||
- VPN_SERVICE_PROVIDER=${VPN_SERVICE_PROVIDER}
|
||||
- VPN_TYPE=${VPN_TYPE}
|
||||
- WIREGUARD_PRIVATE_KEY=${WIREGUARD_PRIVATE_KEY}
|
||||
- WIREGUARD_ADDRESSES=${WIREGUARD_ADDRESSES}
|
||||
- SERVER_COUNTRIES=${SERVER_COUNTRIES}
|
||||
# See https://github.com/qdm12/gluetun-wiki/tree/main/setup#setup
|
||||
qbittorrent:
|
||||
image: lscr.io/linuxserver/qbittorrent:latest
|
||||
container_name: qbittorrent
|
||||
environment:
|
||||
- PUID=1000
|
||||
- PGID=1000
|
||||
- TZ=Etc/UTC
|
||||
- WEBUI_PORT=${SVC_PORT_1}
|
||||
volumes:
|
||||
- ${QBIT_TORRENT_CONFIG_PATH}:/config
|
||||
- ${QBIT_TORRENT_DOWNLOADS_PATH}:/downloads
|
||||
restart: unless-stopped
|
||||
network_mode: "service:gluetun"
|
||||
@ -60,6 +60,14 @@ services:
|
||||
# ================================
|
||||
# vm-netw0rk-100-75
|
||||
# ================================
|
||||
- name: "downloader"
|
||||
ports:
|
||||
- 8080
|
||||
- 6881
|
||||
host:
|
||||
<<: *vm-network-100-75
|
||||
<<: *defaultServiceValues
|
||||
|
||||
- name: "wireguard"
|
||||
ports:
|
||||
- 51820
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user