Configure SSL for Sonarqube running on Docker container to enable https

Thanks for the response @Tobias_Trabelsi,

I am trying to get nginx-proxy set up in front of SonarQube as you suggested. To configure the proxy, I am making edits to the default.conf file and mounting it to the
nginx docker container. Currently, http://<hostname>:80 is rerouting to my SonarQube instance at http://<hostname>:9000, so I know that nginx is at least somewhat functional. However, I have not been able to set it up so that only https traffic routes to SonarQube. Any idea on how to configure this? Also, the environment variables I set have been working in my SonarQube so far - maybe there are different types of syntax that work.

My edits to the default.conf file and nginx docker-compose are shown below. Any additional help is greatly appreciated.

default.conf:

...
server {
  # port to listen on. Can also be set to an IP:PORT
  listen 80;

  # sets the domain[s] that this vhost server requests for
  # this line is throwing a warning "server name "https://<hostname>:9000" has suspicious symbols in /etc/nginx/default.conf:56"
  server_name https://<hostname>:9000;

  location / {
    proxy_pass http://<hostname>:9000;
  }
}

nginx docker-compose.yml:

version: '3'

services:
  nginx-proxy:
    image: '<hostname>/jwilder/nginx-proxy:latest'
    ports:
      - "80:80"
    volumes:
      - /var/run/docker.sock:/tmp/docker.sock:ro
      - /u01/nginx/default.conf:/etc/nginx/default.conf
      - /u01/nginx/nginx.conf:/etc/nginx/nginx.conf
    deploy:
      placement:
        constraints:
          - node.hostname == <hostname>
  whoami:
    image: jwilder/whoami
    environment:
      - VIRTUAL_HOST=whoami.local