I am trying to setup syncthing from Truenas to another linux machine running opencloud, I cannot seem to get data to share or sync, only the config folder.
compose file:
- services:
syncthing:
image: lscr.io/linuxserver/syncthing:latest
container_name: syncthing
hostname: syncthing #optional
environment:
- PUID=1000
- PGID=1000
- TZ=Etc/UTC volumes:
- ./config:/config
- /mnt/data/opencloud:/data1
- /mnt/data/opencloud:/opencloud ports:
- 8384:8384
- 22000:22000/tcp
- 22000:22000/udp
- 21027:21027/udp restart: unless-stopped
The container is mapping the data1 and opencloud folders, this is just testing as I am completely lost at the moment, have built this many times.
root@syncthing:/# ls
app command defaults etc lib mnt package run sys varbin config dev home lsiopy opencloud proc sbin tmpbuild_version data1 docker-mods init media opt root srv usr
Inside the container apps confg data are the correct folders from the host linux system:
root@syncthing:/# cd data1
root@syncthing:/data1# ls
apps config data
Inside the container again, opencloud volume:
root@syncthing:/data1# cd ..
root@syncthing:/# cd opencloud/
root@syncthing:/opencloud# ls
apps config data
Back on truenas if I check where I sync the folders too I can only see /config folder, I did not even sync this folder.
truenas_admin@truenas[/mnt/stank/opencloud]$ ls
config
truenas_admin@truenas[/mnt/stank/opencloud]$ cd config
truenas_admin@truenas[/mnt/stank/opencloud/config]$ ls
cert.pem config.xml.v0 https-key.pem key.pem config.xml https-cert.pem index-v2 syncthing.lock
The linux machine config folder:
sam@localhost:~/syncthing/config$ ls
cert.pem config.xml.v0 https-cert.pem index-v2 syncthing.lockconfig.xml data1 https-key.pem key.pem
Why is Syncthing ignoring the data1 folder I wish to sync and only syncing the config folder which I do not care about. I am somewhat confused.
Cheers.
Juniper
