added backupper

This commit is contained in:
2023-01-27 19:10:26 +00:00
parent 0d4e8b6e80
commit 74c7806ed0
2 changed files with 28 additions and 0 deletions
+27
View File
@@ -0,0 +1,27 @@
version: '3.8'
volumes:
pictures:
driver_opts:
type: nfs
o: addr=maurice,nfsvers=4
device: :/pictures
configs:
stackstorage:
external: true
services:
pictures:
image: registry.vbchaos.nl/rclone:arm64
environment:
- COMMAND=rclone copy -v /backup/ stackstorage:/testfolder
- CRON_SCHEDULE=* 18-20 * * *
configs:
- source: stackstorage
target: /config/rclone.conf
volumes:
- pictures:/backup
deploy:
mode: replicated
replicas: 1
+1
View File
@@ -0,0 +1 @@
docker stack deploy -c docker-compose.yml --with-registry-auth backuppictures