homeserver/torrent/docker-compose.yaml

36 lines
1.1 KiB
YAML
Raw Normal View History

2021-03-03 11:58:20 +01:00
services:
2022-05-27 15:41:52 +02:00
qbittorrent:
image: linuxserver/qbittorrent
environment:
# - PUID=1000
# - PGID=1000
- TZ=Europe/Berlin
- WEBUI_PORT=8090
volumes:
- ${VOLUMES_PATH}/torrent:/config
- ${DOWNLOAD_PATH}/:/downloads
ports:
- 6881:6881
- 6881:6881/udp
2021-03-03 11:58:20 +01:00
# - 8090:8090
2022-05-27 15:41:52 +02:00
networks:
- web
labels:
- "traefik.enable=true"
- "traefik.http.routers.torrent.rule=Host(`torrent.${DOMAIN}`)"
- "traefik.http.routers.torrent.entrypoints=web"
- "traefik.http.services.torrent.loadbalancer.server.port=8090"
- "traefik.http.services.torrent.loadbalancer.passhostheader=false"
- "traefik.http.middlewares.torrentHeader.headers.customRequestHeaders.X-Frame-Options=SAMEORIGIN"
- "traefik.http.middlewares.torrentHeader.headers.customRequestHeaders.Referer="
- "traefik.http.middlewares.torrentHeader.headers.customRequestHeaders.Origin="
- "traefik.http.routers.torrent.middlewares=torrentHeader"
- "docker.group=torrent"
restart: unless-stopped
2021-03-03 11:58:20 +01:00
networks:
web:
external: true
2022-05-27 15:41:52 +02:00