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