Dockers/torrenting/docker-compose.yml
2025-03-10 20:35:38 -07:00

87 lines
2.8 KiB
YAML

version: "3.8"
services:
gluetun: # pipe container traffic through vpn https://hub.docker.com/r/qmcgaw/gluetun
image: qmcgaw/gluetun:latest
container_name: gluetun
cap_add:
- NET_ADMIN
environment:
- VPN_SERVICE_PROVIDER=protonvpn
- OPENVPN_USER=${VPN_USER}
- OPENVPN_PASSWORD=${VPN_PASS}
- SERVER_COUNTRIES=${WG_COUNTRIES}
- VPN_PORT_FORWARDING=on
ports:
- ${QBT_PRIVATE_PORT}:8181
- ${QBT_PUBLIC_PORT}:8182
restart: unless-stopped
qbittorrent-private: # qbittorrent with webui, with network piped through gluetun https://docs.linuxserver.io/images/docker-qbittorrent/
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent-private
environment:
- PUID=${UID}
- PGID=${GID}
- TZ=${TZ}
- WEBUI_PORT=8181
volumes:
- ${DATA_PATH}/gluetun/qbtprivate:/config
- ${TEMP_PATH}/torrents/downloads:/downloads
network_mode: "service:gluetun"
restart: always
qbittorrent-public: # qbittorrent with webui, with network piped through gluetun. Second container allows for different settings based on different torrent services https://docs.linuxserver.io/images/docker-qbittorrent/
image: lscr.io/linuxserver/qbittorrent:latest
container_name: qbittorrent-public
environment:
- PUID=${UID}
- PGID=${GID}
- TZ=${TZ}
- WEBUI_PORT=8182
volumes:
- ${DATA_PATH}/gluetun/qbtpublic:/config
- ${TEMP_PATH}/torrents/downloads:/downloads:rw
network_mode: "service:gluetun"
restart: always
prowlarr: # torrent tracker manager/updater https://docs.linuxserver.io/images/docker-prowlarr/
image: lscr.io/linuxserver/prowlarr:latest
container_name: prowlarr
environment:
- PUID=${UID}
- PGID=${GID}
- TZ=${TZ}
volumes:
- ${DATA_PATH}/prowlarr/config:/config
ports:
- ${PROWLARR_PORT}:9696
restart: unless-stopped
flaresolverr:
image: flaresolverr/flaresolverr:latest
container_name: flaresolverr
environment:
- LOG_LEVEL=${LOG_LEVEL:-info}
- LOG_HTML=${LOG_HTML:-false}
- CAPTCHA_SOLVER=${CAPTCHA_SOLVER:-none}
- TZ=${TZ}
ports:
- ${FLARESOLVERR_PORT}:8191
restart: unless-stopped
samba: # samba remote file access https://github.com/deftwork/samba
image: elswork/samba:latest
container_name: samba
environment:
- TZ=${TZ}
ports:
- "139:139"
- "445:445"
volumes:
- ${MEDIA_PATH}:/mnt/Media
- ${TEMP_PATH}/transcodecache:/transcodecache
- ${TEMP_PATH}/torrents/downloads:/downloads
command: '-u "${UID}:${GID}:${SMB_USER}:${SMB_USER}:${SMB_PASS}" -s "Media:/mnt/Media:rw:${SMB_USER}" -s "TranscodeCache:/transcodecache:rw:${SMB_USER}" -s "Downloads:/downloads:rw:${SMB_USER}"'
restart: unless-stopped