services: config-sync: image: rclone/rclone:latest container_name: config-sync entrypoint: ["/bin/sh", "-c"] command: > "while true; do rclone sync /data/core minio:backups/configs --exclude '*.stat' --exclude '*.log' --verbose; echo 'Sync complete. Waiting 5 minutes...'; sleep 300; done" environment: - RCLONE_CONFIG_MINIO_TYPE=s3 - RCLONE_CONFIG_MINIO_PROVIDER=s3 - RCLONE_CONFIG_MINIO_ACCESS_KEY_ID=admin - RCLONE_CONFIG_MINIO_SECRET_ACCESS_KEY=Pizzajam11 - RCLONE_CONFIG_MINIO_ENDPOINT=http://172.16.201.208:9000 volumes: - /docker:/data:ro restart: always