Skip to content

Usenet streaming with a WebDAV server and a SABnzbd-compatible API

C#

Update README: Add example for external volume mount (#45)

David7f26dcaa4f85
diff --git a/README.md b/README.md
index d04b1a6a..e12ff003 100644
--- a/README.md
+++ b/README.md
@@ -150,7 +150,7 @@ You can set any options here in the `args="..."` section. The command above sets
Move or create `rclone.conf` in `/var/lib/docker-plugins/rclone/config/`. Contents should follow the [example](https://github.com/nzbdav-dev/nzbdav?tab=readme-ov-file#rclone).
In your compose.yaml... **NOTE: Ubuntu container is not required, and is only included for testing the rclone volume.**
-```
+```yml
services:
nzbdav:
image: ghcr.io/nzbdav-dev/nzbdav
@@ -198,6 +198,42 @@ $ docker exec -it <ubuntu container name> bash
$ ls -la /mnt/nzbdav
```
+## Accessing the rclone volume from a separate stack.
+Note: Your rclone volume **must** be already created by another stack, for example:
+
+- Media backend: nzbdav + sonarr + radarr <--- This stack is creating the rclone volume
+- Media frontend: jellyfin <--- Mounts the external arrstack rclone volume
+
+To do so, see the bottom 11 lines in the example compose file in the above section.
+
+The example below uses ubuntu again, but the concept is the same for a different container such as sonarr.
+
+
+Find the stack name that creates the rclone volume:
+```
+$ docker-compose ls
+```
+
+Combine in the new separate compose file:
+```yml
+services:
+ ubuntu:
+ image: ubuntu
+ container_name: ubuntu
+ command: sleep infinity
+ volumes:
+ - nzbdav:/mnt/nzbdav # -- IMPORTANT --
+ environment:
+ - PUID=1000 # Must match UID value from volume in the stack creating the volume (driver_opts).
+ - PGID=1000 # Must match GID value from volume in the stack creating the volume (driver_opts).
+
+volumes:
+ nzbdav:
+ name: <STACK NAME>_nzbdav # See above for finding the stack name. # -- IMPORTANT --
+ external: true # -- IMPORTANT --
+```
+
+
# More screenshots
<img width="300" alt="onboarding" src="https://github.com/user-attachments/assets/4ca1bfed-3b98-4ff2-8108-59ed07a25591" />
<img width="300" alt="queue and history" src="https://github.com/user-attachments/assets/6ae64b41-2ec4-4c40-9c40-de23e42a4178" />