version: "3.8"
services:
cron:
image: rclone/rclone
configs:
- source: backup.sh
target: /etc/periodic/daily/gdrive-backup
volumes:
- type: bind
source: /mnt/
target: /mnt/
entrypoint: [ "/usr/sbin/crond", "-fd", "8" ]
backup.sh:
file: backup.sh
name: backup.sh-v1