So somehow I was able to solve everything and now it's running wonderful, didn't lose anything

Gonna provide a small tutorial.
Info: Did this on a Raspberry Pi running RaspiOS (Debian 12). Also using and internal HDD.
What you should know: Basic Docker knowledge.
Links:
qb-nox-docker,
default-stack-compose
First of all backup your config files in case anything goes wrong. These can be found here:
Code: Select all
/home/USER/.local/share/qBittorrent`
and here:
[code]/home/USER/.config/qBittorrent`
Remember these paths, you'll need them later.
Now you're gonna deploy a new docker-stack. Open the yml file and paste this. If you're sceptical what this is you can read through this here [default-stack-compose](https://github.com/qbittorrent/docker-qbittorrent-nox/blob/main/docker-stack.yml). The yml below is simply adjusted :)
[code]
version: '3.8'
services:
qbittorrent-nox:
# for debugging
#cap_add:
#- SYS_PTRACE
environment:
#- PAGID=10000
#- PGID=1000
#- PUID=1000
- QBT_LEGAL_NOTICE=
# add_confirm_in_the_line_above
- QBT_WEBUI_PORT=8080
#- TZ=UTC
#- UMASK=022
image: qbittorrentofficial/qbittorrent-nox:latest
ports:
# for bittorrent traffic
- 43313:43313/tcp
- 43313:43313/udp
# for WebUI
- 8080:8080/tcp
read_only: true
stop_grace_period: 30m
tmpfs:
- /tmp
tty: true
volumes:
- /home/USER/path/of/your/choice:/config
- /media/USER/DISK/:/media/USER/DISK/
make sure to replace the Ports you wanna use in line 19 & 20. As well as the ones for the WebUI in line 22.
Now for the Volumes, in this example we're using an internal HDD but more on that later.
Now I'm going to explain the
Code: Select all
- /home/USER/path/of/your/choice:/config
line a bit more. This line will create following folders: cache, config, data. Inside these are some more folders so in the end it will look something like this:
Code: Select all
- cache
- config
- rss/
- categories.json
...
- data
- BT_backup
- logs
- rss
inside the config you're gonna add what you found under
.
inside the data you're gonna add what you found under
Code: Select all
/home/USER/.local/share/qBittorrent
.
And then there is
Code: Select all
- /media/USER/DISK/:/media/USER/DISK/
this simply specifies the location where all the files can be saved. In this case it's a DISK which is mounted in
Now you should be able to Launch the stack.
Please double check if the folders and everything was created, it might need some more adjustments depending on what you're using.
If you think there is something that could be improved about this tutorial or the general setup please let me know.
Always here for questions
