In Medusa.js docs it's stated that for products' images you needed an object storage solution. There are 3 supported options, one of them is MinIO which can be dockerized and added to the stack.
It might be interesting to add it to the docker compose files.