title: Springfox swagger "try it out" hiting on localhost
body: <p>I am using spring boot 2.2.4 to build a REST API, and springfow 2.9 for api doc.</p>
  
  <p>I deployed the app in a docker container, and I am able to access the swagger-ui.htmlpage.
  However, when using "ty it out" feature, the request is fired on the localhost url (<a href="https://locahost/api/find" rel="nofollow noreferrer">https://locahost/api/find</a>), instead of the service url (<a href="https://service.acces.url/api/find" rel="nofollow noreferrer">https://service.acces.url/api/find</a>).
  How can I fix that ?</p>
  
  <p>swagger configuration:</p>
  
  <pre><code>    @Bean
  public Docket api(){
      return new Docket(DocumentationType.SWAGGER_2)
              .select()
              .apis(RequestHandlerSelectors.basePackage("fr.test")) // only select API in this package
              .paths(PathSelectors.any())
              .build()
              .apiInfo(apiInfo())
              ;
  }
  
  // build some user friendly name and description for the API doc UI
  private ApiInfo apiInfo(){
      return new ApiInfoBuilder()
              .title("test")
              .description("test.")
              .license("Apache 2.0")
              .licenseUrl("http://www.apache.org/licenses/LICENSE-2.0")
              .build()
              ;
  }
  </code></pre>
  
  <p><strong>EDIT</strong><br>
  I can see that the link to <strong>/v2/api-docs</strong> si well set, but couldn't find how they did in the source code...  </p>
  
  <p><a href="https://i.stack.imgur.com/6j2Oz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/6j2Oz.png" alt="enter image description here"></a></p>