I have had luck installing Gogs using Docker through the CA plugin.
I only needed to do minimal configuration and you can either install a mariadb Docker using the same plugin or you can just use the built-in sqlite3, but that will get slow if you have big repos.
Edit - If it helps, I am using this one.