This repo demonstrates how to configure sonarqube and postgres in docker. It also shows how to write a multi-stage Dockerfile for .net core app that can publish code coverage stats to sonarqube.
The demo application uses nunit for unit testing and coverlet for code coverage data.