code: public int getPublicPort() {
          if (publicPort == -1) {
  
              String sport = System.getenv("PUBLIC_WEB_PORT");
  
              if (!Str.isEmpty(sport)) {
                  publicPort = Integer.parseInt(sport);
              }
          }
  
          if (publicPort == -1) {
              publicPort = getPort();
          }
  
          return publicPort;
      }
docs: Get the public port for service meta generation (Swagger)
  
  @return public port