How to use Bind Mounts in Container Manager

I’m attempting to move my Media Server management from the Synology Apps, into Containers in Container Manager. I want to use the Folders on my Home Directory in the Container Manager, so I don’t have to recreated everything. I’m struggling with How to Put Bind Mounts into the Compose files, or to reference the Home Directory from within the Container.

Post your compose file here (formatted please)

services:
sabnzbd:
image: lscr.io/linuxserver/sabnzbd:latest
container_name: sabnzbd
environment:

  • PUID=1026
  • PGID=100
  • TZ=America/Los_Angeles
    volumes:
  • /volume1/docker/configs/sabnzbd/config:/config
  • /volume1/downloads/incomplete:/incomplete-downloads #optional
  • /volume1/downloads/complete:/downloads #optional
  • /volume1/downloads/watch:/watch #optional
    ports:
  • 6660:8080
    restart: unless-stopped

Unsure what your questions is. Apart from proper formatting, everything seems in place.

This is how I would do this:

services:
  sabnzbd:
    image: lscr.io/linuxserver/sabnzbd:latest
    container_name: sabnzbd
    environment:
      - PUID=1026
      - PGID=100
      - TZ=America/Los_Angeles
    volumes:
      - /volume1/docker/sabnzbd/config:/config
      # - /volume1/downloads/incomplete:/incomplete-downloads #optional
      - /volume1/downloads/complete:/downloads
    ports:
      - 6660:8080
    restart: unless-stopped

Access via http://<your nas lan ip>:6660

Apart from my personal preferences, these are the same. Do you have a specific issue/error?

First off, thanks for your input. I’ve got a couple of questions. First when I’m in the Application, if I try to change a folder, or add a location such as a ‘Watch’ folder all I see is what is in the Container. Even thought there is a Watch folder in the downloads directory. In this specific application instance, I have about ten categories set up that reference folders, do I have to manually add those location in the Compose file, or will I be able to build them out once the application is running?

Secondly, I’ve been seeing references to the fact that when you use Bind Mounts, if you’re connecting to folder that already have content, you will not be able to see the existing content. Is this true? My /Media folder has a lot of content and I’d rather not lose all of that.

Third, I use some ARR applications to move content to different folders within the /Media directory, do I have to mount the whole structure into the container to make it available to the Container?

Let me throw you a small curve. There is an excellent write-up by Dr Frankenstein, that should address most questions. His volume mapping differs in small regard to yours, but you should be easily able to transition. I hope this is helpful.

1 Like

Thank you, I’ve used DrFrankenstein in the past, I’ll go see what they can recommend. When dealing with my NAS project I usually check out SpaceRex, and a couple of other place when I put a plan together.