Files
infrastructure/ansible/roles/qbittorrent/templates/docker-compose.yml
2023-01-30 17:49:18 -05:00

24 lines
686 B
YAML

version: "{{ docker_compose_version }}"
networks:
traefik:
external: true
services:
qbittorrent:
container_name: qbittorrent
image: lscr.io/linuxserver/qbittorrent:libtorrentv1
restart: unless-stopped
network_mode: "container:gluetun"
environment:
- PUID={{ primary_uid }}
- PGID={{ media_gid }}
- TZ={{ timezone }}
volumes:
- "{{ data_dir }}/qbittorrent:/config"
- "{{ media_storage_mnt }}/data/torrents:/downloads"
labels:
traefik.enable: true
traefik.http.routers.qbittorrent.rule: "Host(`qbittorrent.local.{{ personal_domain }}`)"
traefik.http.routers.qbittorrent.middlewares: lan-whitelist@file