updated mount config

This commit is contained in:
2025-11-05 21:57:17 +00:00
parent feae85b159
commit f02c9eaf26

View File

@@ -3,24 +3,20 @@ services:
image: alpine:latest image: alpine:latest
user: "0:0" user: "0:0"
command: > command: >
sh -c " 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"
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: deploy:
replicas: 1 replicas: 1
restart_policy: restart_policy:
condition: on-failure condition: on-failure
delay: 30s delay: 30s
placement: placement:
constraints: [node.role == manager] constraints: [ node.role == manager ]
volumes: volumes:
- /home/doc/projects/swarm-data/appdata:/source:ro - /home/doc/projects/swarm-data/appdata:/source:ro
- /home/doc/backups:/destination - /home/doc/projects/backups:/destination
- /home/doc/projects/swarm/conf/rsync-conf/excludes.txt:/excludes.txt:ro - /home/doc/projects/swarm/conf/rsync-conf/excludes.txt:/excludes.txt:ro
networks: networks:
- homelab - homelab
networks: networks:
homelab: homelab:
external: true external: true