The Grafana version has been fixed to 11.6.0 as Grafana 12 does not support AngularJS plugins anymore, if you need the latest version of consider using the official plugin.
Thank to JamesOsgood for creating the plugin https://github.com/JamesOsgood/mongodb-grafana.
Thank to SiemaApplications for upgrading and maintaining the plugin https://github.com/SiemaApplications-attic/mongodb-grafana. Refer to their repository for the plugin usage.
Just run docker-compose up -d
to start the container.