Hello,
Thanks for sharing more data.
Are you able ping the sonarqube
hostname from the scanner container?
I realise you did state the containers are on the same network however clearly something is not working here since the simple curl commands should work under normal circumstances.
I am sharing my working docker-compose sonar82_psql_jenkins_yml.txt (781 Bytes) for your reference.
Hope that helps.
Kris