Hello,
I have problems to set up my Syncthing Docker on OMV5 with RAID. I have 4x4Tb harddrives as a RAID0 and try to create a Docker with this Code from hub.Docker.com:
version: "2.1"
services:
syncthing:
image: linuxserver/syncthing
container_name: syncthing
hostname: syncthing #optional
environment:
- PUID=998
- PGID=100
- TZ=Europe/Berlin
volumes:
- /srv/dev-disk-by-id-md-name-raspberrypi-vol1/media/config/syncthing:/config
- /srv/dev-disk-by-id-md-name-raspberrypi-vol1/private:/data1
- /path/to/data2:/data2
ports:
- 8384:8384
- 22000:22000
- 21027:21027/udp
restart: unless-stopped
Alles anzeigen
The data2 path i don't know how to do because this path where syncthing is getting it's data from is my own pc not my NAS. But yes, thats how i tried. After deploying the docker i deleted the default folder and connected my pc and NAS together etc. But the problem is i cannot set my folders correctly. I set my Folder on my PC with the path on a harddrive. But when i connect everything together i notice on my NAS that i cannot set the correct path to my folder on my NAS with RAID. It says there is a permission problem and inotify limit.
The inotify problem can be solved with a command i found online
ZitatOn many Linux distributions you can run the following to fix it:
On Arch Linux and potentially others it is preferred to write this line into a separate file, i.e. you should run:
This only takes effect after a reboot. To adjust the limit immediately, run:
but the permission problem i cannot fix. Whatever i the Docker fails to create the folder in the path and it puts the folder in config
It stays the same even when i create the folder myself.
But normaly the PUID and PGID is from the admin account and the sharefolder where i want to put the data from my pc is only accessable by a User and the admin by OMV settings, so in my thinking it should be possible to create the folder by the Docker with admin rights or am i wrong?
And why it puts the folder to the config folder...
Nevertheless i don't lnow what to do now
I just want to syncronize my data from my pc to my NAS automatically..
Any ideas?