Forum Discussion
Hey Ray, that's understandable.
For SWAGGER_JSON there is confusion around the `-v` flag of docker ( it stands for volume, and is a way to mount a filesystem/file ).
See this thread for more info https://github.com/swagger-api/swagger-ui/issues/3348
tl;dr...
docker run -p 80:8080 -e "SWAGGER_JSON=/swagger.json" -v /home/josh/swagger.json:/swagger.json swaggerapi/swagger-ui
Replace `/home/josh/swagger.json` with the path to your swagger.json on your server/laptop.
For private specs in SwaggerHub, you can access them with an APIKEY, but the Open Source swaggerui docker image doesn't have a mechanism for that (yet).
Ah! Thanks for that! I've updated my instructions above to reflect your feedback. Thanks for your help!
--Ray
- fbmattos7 years agoSmartBear Alumni (Retired)
Hi Ray-
Our next big focus is to make several improvements to our documentation capabilities, including enabling customization and allowing customers to CNAME to it.
Would you be interested in a quick call with me so I can understand your needs? I'd appreciate your time!
Click here to schedule a time.
Thanks,
Fernando
Related Content
Recent Discussions
- 8 days agokj20nt