You need to bind it to the host.
So if you are using dockerfile and a docker run command it’s something with
docker run -v /folder/on/host/to/store:/public/uploads
Now I don’t know if your using this or docker compose etc, so it’s a bit hard to say. Here is some reading material since there is no code provided with a dockerfile etc.