Skip to content

Step 1: Directory Setup Guide (DSM7.2.x)

Important or Recent Updates
Historic UpdatesDate
First version of the setup01/08/2021
Updated the general formatting
Gave the guide a once over with LanguageTool
14/03/2022
Added ‘books’15/07/2022
DSM7.2 Update for Container Manager22/04/2023
Historic Updates

Please note – before starting make sure you have installed the Container Manager package from Package Manager

When passing folders into a Docker container each mount point is treated as its own filesystem.

This means when moving files between two mount points Docker will do a Copy, then Delete operation. Meaning you are creating a full duplicate of a file while its being ‘moved’ creating unwanted disk IO and temporarily taking up double the space. (especially when seeding torrents after copying to the final folders)

In order to avoid this we need to set up a clean directory structure that allows us to just have one folder or share mounted to our containers.

If you are starting with these guides and have existing media you may need to move around your data in line with this setup, I recommend creating all the folders below using File station to avoid potential permission issues later.

Directory Structure

With this setup all of your media will sit within a single share, you can call this whatever you want but in all the guides it will be called ‘data’. If you change its name you will need to adjust any steps or compose files from my guides accordingly.

Open up the control panel then in ‘Shared Folder’ hit ‘Create’

On screen 1 fill out the name as ‘data’

Screen 2 we leave the folder unencrypted

Screen 3 – Enable data checksums as this will help catch any issues with files during data scrubbing.

Screen 4 – just click next past the summary

On the final screen we don’t need to change any user permissions yet, we will do that in the second guide.

The Sub-folders

Now we have our main ‘data’ directory we need to create a number of sub-folders to hold our media and downloaded files. You can amend this depending on whether you are using Torrents or Usenet (Newsgroups) or both.

You will initially create 3 folders within /data

  • media
  • torrents
  • usenet

Then under /data/media create

  • movies
  • music
  • tv
  • books

Then under /data/torrents create

  • completed
  • incoming
  • watch

Then under /data/usenet create

  • completed
  • intermediate
  • nzb
  • queue

Your folder tree should now look like this.

Finally, within the /docker shared folder create a folder called ‘projects‘ which will be used for any containers using the Projects (Docker Compose) feature of Container Manager.

You can now go back to where you left off in the guides and do the next step.


Buy Me a Coffee or a Beer

If you have found my site useful please consider pinging me a tip as it helps cover the cost of running things or just lets me get the odd beverage. Plus 10% goes to the devs of the apps I do guides for every year.

14 Comments

  1. Babbolla Babbolla

    Hey, so I have followed all your guides and set this up but the files are not being moved out of the ‘completed’ folder to the TV folder after they’ve been downloaded. Sonarr is saying it doesnt have access to the ‘data/media/tv folder. The root folder in Sonarr is the data/media/tv and it can read whats in there.

    Been trying to figure out and a lot of guides say that they usenet folder should have a ‘movies’ and ‘tv’ folder in it so that sonarr knows where to put the downloaded items. But I have no idea! I have clearly missed something when it comes to permissions, but no clue where.

    • Dr_Frankenstein Dr_Frankenstein

      Hey is the path missing the initial /

      The completed download folder doesn’t have to have dedicated tv and movie folders, but it does help.

      Drop me a message via my HelpMe! page and we can exchange some screenshots.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

drfrankenstein.co.uk – writing Synology Docker Guides since 2016 – Join My Discord!