From c116c6c5eedd89e9e09004c4f2fdabd90b076bc6 Mon Sep 17 00:00:00 2001 From: Chocobo1 Date: Fri, 22 Nov 2024 16:04:52 +0800 Subject: [PATCH] Add configuration for docker stack --- Readme.md | 3 +++ docker-stack.yml | 30 ++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 docker-stack.yml diff --git a/Readme.md b/Readme.md index d0d23e1..4e86145 100644 --- a/Readme.md +++ b/Readme.md @@ -36,6 +36,9 @@ https://github.com/qbittorrent/qBittorrent/issues 2. Edit Docker environment file + If you are using Docker Stack, refer to [docker-stack.yml](https://github.com/qbittorrent/docker-qbittorrent-nox/blob/main/docker-stack.yml) file as an example. \ + It is an almost ready-to-use configuration yet a few variables are required to be filled in. Make sure you read the following steps as they largely share the same concept. + If you are not using Docker Compose you can skip editing the environment file. However the variables presented below is crucial in later steps, make sure you understand them. diff --git a/docker-stack.yml b/docker-stack.yml new file mode 100644 index 0000000..3ca8023 --- /dev/null +++ b/docker-stack.yml @@ -0,0 +1,30 @@ +version: "3.8" + +services: + qbittorrent-nox: + # for debugging + #cap_add: + #- SYS_PTRACE + environment: + #- PAGID=10000 + #- PGID=1000 + #- PUID=1000 + - QBT_LEGAL_NOTICE= + - QBT_WEBUI_PORT=8080 + #- TZ=UTC + #- UMASK=022 + image: qbittorrentofficial/qbittorrent-nox:latest + ports: + # for bittorrent traffic + - 6881:6881/tcp + - 6881:6881/udp + # for WebUI + - 8080:8080/tcp + read_only: true + stop_grace_period: 30m + tmpfs: + - /tmp + tty: true + volumes: + - /config:/config + - /downloads:/downloads