How to cache maven downloaded dependencies for all projects?

I have a single server with many runners (docker executor). I want to cache the downloaded maven dependencies in a single folder of the host, for all projects.

Tried to add a bind in the runners > runners.docker > volumes in the config.toml, but it does not work.

Any tips?

The actual value from the config would help, but it should be defined like this: volumes = [ "/host/path/to/cache:/cache" ]