Folder StructureCreating Shared Folders for the Docker environments.
📌 For this we will be using the folowing
folders:docker data💡NOTE: These folders are the defaults we will be using throughout the site.
Folder structure example, this applies to all enviroments to aide the moveability in-between flavors of OS:
/volume1/docker
/volume1/data
Create Shared Folders:
a. Open Control Panel > Shared Folder.
b. Click Create > Create Shared Folder.
c. As you are creating make sure that the "Admin" user has read/write access to this folder
d. Add a docker share and a data share
Notes
a. The docker folder will house your Docker applications and the data will house all of your media or other data.
b. This will add all of the directories under the admin user and the users group.
NOTE: If you are going to create a SERVARR stack then you can create another shared folder, for example, named media or data, to store your actual media files (movies, TV shows, music, etc.) that your Arr applications will manage.
File Station application within synology for any Docker persistant volume.Create a subfolder named appdata. Inside appdata, create individual subfolders for each Arr application you plan to use (e.g., radarr, sonarr, lidarr, prowlarr, etc.). These will store the configuration files for each application.
Navigate to the media (or data) shared folder.
Create subfolders within this folder to organize your media, such as movies, tv, music.
/volume1 directory/data directoryThese will serve as the host directories for your Docker volumes.
sudo mkdir -p /volume1/docker
sudo mkdir -p /volume1/data
admin user to match Synologydocker user to match Synologysudo useradd -m admin -g users
sudo useradd -m docker -g users
sudo chmod -R a=,a+rX,u+w,g+w /volume1/docker
sudo chown -R admin:users /volume1/docker
sudo chmod -R a=,a+rX,u+w,g+w /volume1/data
sudo chown -R admin:users /volume1/data
id admin
id docker
This should being back the following information on each user
uid=1024(admin) gid=100(users) groups=100(users)
uid=1031(docker) gid=100(users) groups=100(users)
User id 1024 and/or 1031 and 100 for the group