From 1bb70a299650773e7d7416b8b3e0b251bf6d8c93 Mon Sep 17 00:00:00 2001 From: Max Horstmann Date: Fri, 27 May 2022 14:56:28 -0400 Subject: [PATCH] docs(usage): add installation section for SWAGGER_JSON_URL (#8036) Co-authored-by: Tim Lai --- docs/usage/installation.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/usage/installation.md b/docs/usage/installation.md index f39626cd..6713f05f 100644 --- a/docs/usage/installation.md +++ b/docs/usage/installation.md @@ -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: ```