Add configuration for docker stack
Some checks are pending
CI / CI (linux/amd64) (push) Waiting to run

This commit is contained in:
Chocobo1 2024-11-22 16:04:52 +08:00
parent 1e739545d9
commit c116c6c5ee
No known key found for this signature in database
GPG Key ID: 210D9C873253A68C
2 changed files with 33 additions and 0 deletions

View File

@ -36,6 +36,9 @@ https://github.com/qbittorrent/qBittorrent/issues
2. Edit Docker environment file 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. 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. However the variables presented below is crucial in later steps, make sure you understand them.

30
docker-stack.yml Normal file
View File

@ -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:
- <your_path>/config:/config
- <your_path>/downloads:/downloads