Move Docker section out of README, into installation.md

This commit is contained in:
Kyle Shockey
2017-12-04 21:40:10 -08:00
parent 930659d1d7
commit b19af62e20
2 changed files with 8 additions and 24 deletions

View File

@@ -52,6 +52,14 @@ 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
```
The base URL of the web application can be changed by specifying the `BASE_URL` environment variable:
```
docker run -p 80:8080 -e BASE_URL=/swagger -e SWAGGER_JSON=/foo/swagger.json -v /bar:/foo swaggerapi/swagger-ui
```
This will serve Swagger UI at `/swagger` instead of `/`.
### unpkg
You can embed Swagger-UI's code directly in your HTML by using unkpg's interface: