docs(usage): add installation section for SWAGGER_JSON_URL (#8036)

Co-authored-by: Tim Lai <timothy.lai@gmail.com>
This commit is contained in:
Max Horstmann
2022-05-27 14:56:28 -04:00
committed by GitHub
parent eca052d0a5
commit 1bb70a2996

View File

@@ -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:
```