Files
nas-compose/services/torrents/docker-compose.yml
2023-04-11 07:39:27 +10:00

72 lines
2.1 KiB
YAML

name: Torrents
services:
qbittorrent:
hostname: qbittorrent
image: hotio/qbittorrent
environment:
PUID: ${NASCOMPOSE_UID?}
PGID: ${NASCOMPOSE_GID?}
VPN_ENABLED: true
cap_add:
- NET_ADMIN
sysctls:
net.ipv4.conf.all.src_valid_mark: 1
networks:
- reverse-proxy
- torrents
devices:
- /dev/net/tun:/dev/net/tun
volumes:
- ${NASCOMPOSE_SERVICES?}/torrents/volumes/qbittorrent_config/:/config/
- ${NASCOMPOSE_DATA?}/torrents/:/data/
- ${NASCOMPOSE_SERVICES?}/torrents/secrets/wg0.conf:/config/wireguard/wg0.conf:ro
- ${NASCOMPOSE_SERVICES?}/torrents/config/set_port.sh:/bin/set_port.sh:ro
- ${NASCOMPOSE_SERVICES?}/torrents/config/97-gateway-setup:/etc/cont-init.d/97-gateway-setup:ro
- ${NASCOMPOSE_SERVICES?}/torrents/config/98-natpmp-install:/etc/cont-init.d/98-natpmp-install:ro
- ${NASCOMPOSE_SERVICES?}/torrents/config/99-cron-start:/etc/cont-init.d/99-cron-start:ro
configs:
- source: qbittorrent_vpn_settings
target: /config/wireguard/wg0.conf
- source: qbittorrent_
target: /.conf
- source: qbittorrent_
target: /.conf
- source: qbittorrent_
target: /.conf
restart: unless-stopped
labels:
traefik.enable: true
traefik.http.routers.qbittorrent.middlewares: authelia@file
cross-seed:
hostname: cross-seed
image: crossseed/cross-seed
user: ${NASCOMPOSE_UID?}:${NASCOMPOSE_GID?}
networks:
- torrents
- indexer
volumes:
- ${NASCOMPOSE_SERVICES?}/torrents/volumes/cross-seed_config/:/config
- ${NASCOMPOSE_SERVICES?}/torrents/volumes/qbittorrent_config/data/BT_backup/:/torrents:ro
command: daemon
restart: unless-stopped
qbit-manage:
hostname: qbit-manage
image: bobokun/qbit_manage
networks:
- torrents
volumes:
- ${NASCOMPOSE_SERVICES?}/torrents/volumes/qbit-manage_config/:/config
- ${NASCOMPOSE_DATA?}/torrents/:/data/
networks:
torrents:
name: torrents
reverse-proxy:
external: true
indexer:
external: true