mirror of
https://github.com/Redocly/redoc.git
synced 2024-11-28 19:43:43 +03:00
1bbb0fe679
When PORT is 8080 and dokcer restart, nginx will listen 80808080 |
||
---|---|---|
.. | ||
hooks | ||
docker-run.sh | ||
Dockerfile | ||
index.tpl.html | ||
nginx.conf | ||
README.md |
Official ReDoc Docker Image
Usage
Serve remote spec by URL:
docker run -it --rm -p 80:80 \
-e SPEC_URL='http://localhost:8000/swagger.yaml' redoc
Serve local file:
docker run -it --rm -p 80:80 \
-v $(PWD)/demo/swagger.yaml:/usr/share/nginx/html/swagger.yaml \
-e SPEC_URL=swagger.yaml redoc
Runtime configuration options
PAGE_TITLE
(default"ReDoc"
) - page titlePAGE_FAVICON
(default"favicon.png"
) - URL to page faviconSPEC_URL
(default"http://petstore.swagger.io/v2/swagger.json"
) - URL to specPORT
(default80
) - nginx portREDOC_OPTIONS
-<redoc>
tag attributes
Build
docker build -t redoc .