Docker container triggers rClone copy on host?

I am running Sonarr and Radarr in seperate docker containers. Both of these apps need to trigger an rclone copy on the host (outside the docker container) after post processing. What is the best way to solve this?

  1. Have the Sonarr & Radarr docker container send a HTTP request to another rClone container running a small webserver that triggers a rClone copy (I don’t see any Github repos doing this)?

  2. Install rClone in both of the Sonarr and Radarr containers and run rClone inside each container (restarting containers requires rClone to be reconfigured each time?).

  3. Any other ideas I’m not thinking of?

Perhaps inotify on the host fs?

Or what if you simply echo the files you want to copy/move into a file on the os and have a cronjob run every few minutes to process them. The Cron script for rclone could use the --files–files from parameter and reference that file with the echo’d files…

[[ -f $file ]] && rclone copy local: remote: --files-from $file