docs(usage): add installation section for SWAGGER_JSON_URL (#8036)
Co-authored-by: Tim Lai <timothy.lai@gmail.com>
This commit is contained in:
@@ -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
|
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:
|
The base URL of the web application can be changed by specifying the `BASE_URL` environment variable:
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|||||||
Reference in New Issue
Block a user