After several failed attempts to use other's scripts, I stumbled upon the following option. Worked alright for 40+ of my repos, YMMV
- backup gogs repo with gogs backup
docker exec -it gogs_container_namebash8698765c2e8a:/app/gogs# USER=git ./gogs backup
- copy the file and unzip the gogs-backup.zip
- extract
gogs-backup/repositories.zip(has all the bare repos)