You can use the bare metal install as per the documentation at
https://mayan.readthedocs.io/en/latest/topics/deploying.html
I wrote up my experiences installing on a Raspberry Pi 2 a while ago, using an older version of Mayan. My process wasn't as elegant as the link above, and you would be much better off doing it the official way.
The official guide doesn't cover HTTPS config, so follow the links in my write-up to get the latest in nginx security. The basics are to only use strong cyphers and create your own dh key.
I don't think docker is going to be of much value on a Raspberry Pi, as I wouldn't expect you to be running any other containers on such a small platform.
Jonathon.