diff --git a/syncthing/.env.sample b/syncthing/.env.sample new file mode 100644 index 0000000..d4b68f6 --- /dev/null +++ b/syncthing/.env.sample @@ -0,0 +1,2 @@ +NFS_SERVER=192.168.0.xxx # oder hostname oder Domain +BACKUP=/Pfad/zum/Ordner/Backup \ No newline at end of file diff --git a/syncthing/docker-compose.yml b/syncthing/docker-compose.yml index 687e399..0286f07 100644 --- a/syncthing/docker-compose.yml +++ b/syncthing/docker-compose.yml @@ -10,11 +10,19 @@ services: - TZ=Europe/Berlin volumes: - ./config:/config - - ./Borgal:/Borgal - - ./Sandra:/Sandra + - Backup:/Backup ports: - 8384:8384 - 22000:22000/tcp - 22000:22000/udp - 21027:21027/udp - restart: unless-stopped \ No newline at end of file + restart: unless-stopped + +volumes: + Backup: + name: Backup + driver: local + driver_opts: + type: nfs + o: addr=${NFS_SERVER},rw + device: ":${BACKUP}"