36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
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"
|