From c3e138bd81e101bf4fdb61c84c7a07f8720d9514 Mon Sep 17 00:00:00 2001 From: Administrator Date: Mon, 8 Dec 2025 10:19:25 +0500 Subject: [PATCH] Update 2 files - /group_vars/all.yml - /roles/qbittorrent/templates/docker-compose.yml.j2 --- group_vars/all.yml | 13 ++++++------- roles/qbittorrent/templates/docker-compose.yml.j2 | 10 ++++++---- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/group_vars/all.yml b/group_vars/all.yml index 9eed516..6467b93 100644 --- a/group_vars/all.yml +++ b/group_vars/all.yml @@ -141,15 +141,14 @@ dashy_config_dir: "{{ dashy_base_dir }}/config" dashy_port: "45132" dashy_domain: "start.zailon.ru" -qbittorrent_base_dir: "/opt/qbittorrent" +--- +qbittorrent_base_dir: "/mnt/qbittorrent" qbittorrent_config_dir: "{{ qbittorrent_base_dir }}/config" qbittorrent_downloads_dir: "{{ qbittorrent_base_dir }}/downloads" -qbittorrent_port_web: "45133" -qbittorrent_port_tcp: "6881" -qbittorrent_port_udp: "6881" -qbittorrent_puid: "1000" -qbittorrent_pgid: "1000" -qbittorrent_image: "lscr.io/linuxserver/qbittorrent:latest" +qbittorrent_port_webui: 45133 +qbittorrent_port_torrent: 6881 +qbittorrent_webui_username: "zailon" +qbittorrent_webui_password: "13qeadZC" # ------------ data (192.168.1.202) ------------ bookstack_base_dir: "/mnt/bookstack" diff --git a/roles/qbittorrent/templates/docker-compose.yml.j2 b/roles/qbittorrent/templates/docker-compose.yml.j2 index 9c61698..33045a0 100644 --- a/roles/qbittorrent/templates/docker-compose.yml.j2 +++ b/roles/qbittorrent/templates/docker-compose.yml.j2 @@ -1,13 +1,15 @@ --- services: qbittorrent: - image: {{ qbittorrent_image }} + image: lscr.io/linuxserver/qbittorrent:latest container_name: qbittorrent environment: - - PUID={{ qbittorrent_puid }} - - PGID={{ qbittorrent_pgid }} + - PUID=1000 + - PGID=1000 - TZ={{ timezone }} - - WEBUI_PORT=8080 + - WEBUI_PORT={{ qbittorrent_port_webui }} + - WEBUI_USERNAME={{ qbittorrent_webui_username }} + - WEBUI_PASSWORD={{ qbittorrent_webui_password }} - TORRENTING_PORT=6881 volumes: - {{ qbittorrent_config_dir }}:/config