Yep! Absolutely. Here is the relevant portion of the docs.
I am using R2 for my instance and I set up those environment variables in my .env
file before building the docker container for the first time, and everything just worked. The specifics of different S3 providers can vary a bit. There is a special set of instructions for using Wasabi S3 for example (I think this was contributed by Jerry of feddit.online).