Skip to content

Commit

Permalink
Add configuration for docker stack
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobo1 committed Nov 22, 2024
1 parent 1e73954 commit c116c6c
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
30 changes: 30 additions & 0 deletions docker-stack.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit c116c6c

Please sign in to comment.