Skip to content

Commit

Permalink
docs(usage): add installation section for SWAGGER_JSON_URL (#8036)
Browse files Browse the repository at this point in the history
Co-authored-by: Tim Lai <timothy.lai@gmail.com>
  • Loading branch information
MaxHorstmann and tim-lai committed May 27, 2022
1 parent eca052d commit 1bb70a2
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions docs/usage/installation.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ Or you can provide your own swagger.json on your host
docker run -p 80:8080 -e SWAGGER_JSON=/foo/swagger.json -v /bar:/foo swaggerapi/swagger-ui
```

You can also provide a URL to a swagger.json on an external host:

```
docker run -p 80:8080 -e SWAGGER_JSON_URL=https://petstore3.swagger.io/api/v3/openapi.json swaggerapi/swagger-ui
```

The base URL of the web application can be changed by specifying the `BASE_URL` environment variable:

```
Expand Down

0 comments on commit 1bb70a2

Please sign in to comment.