staging for gitea runner
Some checks failed
Deploy Stack to Swarm / deploy (push) Failing after 58s

This commit is contained in:
2025-11-12 17:46:19 -05:00
parent b0a4f23cad
commit 3e30c33fbe
17 changed files with 0 additions and 283 deletions

20
rsync-stack.yml Normal file
View File

@@ -0,0 +1,20 @@
services:
rsync:
image: alpine:latest
user: "0:0"
command: >
sh -c " apk add --no-cache rsync && echo '0 2 * * * rsync -av --no-perms --no-owner --no-group --exclude-from=/excludes.txt /source/ /destination/ && echo \"Sync completed at $$(date)\"' | crontab - && echo 'Backup sync started. Daily sync at 2 AM.' && crond -f -l 2"
deploy:
replicas: 1
restart_policy:
condition: on-failure
delay: 30s
volumes:
- /home/doc/projects/swarm-data/appdata:/source:ro
- /home/doc/projects/backups:/destination
- /home/doc/projects/swarm/conf/rsync-conf/excludes.txt:/excludes.txt:ro
networks:
- homelab
networks:
homelab:
external: true