How to execute multiple commands with docker compose rclone

STOP and READ USE THIS TEMPLATE NO EXCEPTIONS - By not using this, you waste your time, our time and really hate puppies. Please remove these two lines and that will confirm you have read them.

What is the problem you are having with rclone?

Hi,
I am trying to find what command to set to rclone with docker compose to mount multiple folders, start the web ui, and not having it restart loop. I tried dozens of command syntax for hours without success. I couldn't find any example in the forums with docker compose + multiple commands used.

Currently, I am on the following command:

    entrypoint: ["/bin/sh", "-c"]
    command: >
      "/usr/local/bin rclone mount ShadowDriveCrypt:matrix /mount/matrix --allow-non-empty"
      && 
      "/usr/local/bin rclone mount ShadowDriveCrypt:vaultwarden /mount/vaultwarden --allow-non-empty"
      && 
      "/usr/local/bin rclone rcd --rc-web-gui --rc-web-gui-no-open-browser --rc-addr :5572 --rc-user admin --rc-pass ${RCLONE_ADMINPASSWORD}"

This does not work. I have the error: /bin/sh: /usr/local/bin: Permission denied

What would be the correct way of mounting these 2 remotes and start the gui ?
Thanks in advance for any answer.

Run the command 'rclone version' and share the full output of the command.

1.69.1

Which cloud storage system are you using? (eg Google Drive)

ShadowDrive

The command you were trying to run (eg rclone copy /tmp remote:tmp)

    entrypoint: ["/bin/sh", "-c"]
    command: >
      "/usr/local/bin rclone mount ShadowDriveCrypt:matrix /mount/matrix --allow-non-empty"
      && 
      "/usr/local/bin rclone mount ShadowDriveCrypt:vaultwarden /mount/vaultwarden --allow-non-empty"
      && 
      "/usr/local/bin rclone rcd --rc-web-gui --rc-web-gui-no-open-browser --rc-addr :5572 --rc-user admin --rc-pass ${RCLONE_ADMINPASSWORD}"

Please run 'rclone config redacted' and share the full output. If you get command not found, please make sure to update rclone.

[ShadowDrive]
type = webdav
url = https://drive.shadow.tech/remote.php/webdav
vendor = other
user = XXX
pass = XXX

[ShadowDriveCrypt]
type = crypt
remote = ShadowDrive:crypt
password = XXX
password2 = XXX

A log from the command that you were trying to run with the -vv flag

Paste  log here

this looks like a duplicate of another post of yours, that you just posted at a few minutes ago??
perhaps should delete this topic and continue to post at that your other open topic?

Can't find the correct command for docker rclone