There are two settings I add to my yml file to prevent a timeout, command-timeout and max-duration.

Last I checked though I had to add a different repo to my composer.json

Now you get 10 minutes on both