Syncthing
Syncthing is an open-source file synchronization tool that allows users to securely and efficiently sync files and folders across multiple devices. It operates in a peer-to-peer fashion, meaning there's no central server involved. Users can use Syncthing to keep their data up-to-date on different computers or mobile devices, ensuring that files are consistently mirrored and available, while maintaining control over their data privacy and security.
This will run Syncthing under http://localhost:9060 inside your network
version: "3.2"
services:
syncthing:
image: ghcr.io/linuxserver/syncthing
container_name: syncthing
hostname: syncthing
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Zurich
ports:
- [port]:8384
- 22000:22000
- 21027:21027/udp
volumes:
- /home/[user]/docker/syncthing/config:/config
- backupssync:/data
restart: unless-stopped
volumes:
backupssync:
driver: local
driver_opts:
type: nfs
o: addr=[IP.OF.BACKUP.TARGET],rw,nolock,noatime,rsize=262144,wsize=65536
device: :/[destination_folder]/backupsCopy
NOTE:
[user] Corresponds to the folder of you user in your system
[port] The desired port you'd like to map the host
[IP.OF.BACKUP.TARGET] The target ip of the network machine where to do backups to
[destination_folder] The destination folder structure for example: /volume1/backups