You can pull a pre-built docker image of the swagger-ui directly from Dockerhub:

docker pull swaggerapi/swagger-ui
docker run -p 80:8080 swaggerapi/swagger-ui

Will start nginx with swagger-ui on port 80.

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 /.

最新文章

  1. c++调用lua
  2. 关于IoCallDriver使用的疑惑
  3. .split()函数使用方法
  4. 【转】SQL Server与Oracle的区别
  5. Knockout.Js学习目录
  6. 289. Game of Life
  7. [zz] Install VSFTP
  8. iOS开发笔记-两种单例模式的写法
  9. C++ - 派生类访问模板基类(templatized base class)命名
  10. ubuntu 更改默认亮度
  11. Java 局部变量、实例变量、类变量(静态变量)区别
  12. codeforces 809E Surprise me!
  13. Codeforces 343E Pumping Stations
  14. SpriteBuilder复杂CCB在App场景加载时报错排查
  15. (转)ArcGIS Runtime for Android 使用异步GP服务绘制等值线
  16. git error: Your local changes to the following files would be overwritten by merge:xxxxxx ,Please commit your changes or stash them before you merge.的phpstorm解决办法
  17. 阿里P9架构师讲解从单机至亿级流量大型网站系统架构的演进过程
  18. ubuntu 配置拼音输入法步骤
  19. 017 SpringMVC中CRUD实例
  20. bootstrap之双日历时间段选择控件—daterangepicker(汉化版)

热门文章

  1. caffe跑densenet的错误:Message type "caffe.PoolingParameter" has no field named "ceil_mode".【转自CSDN】
  2. dede模块管理一片空白或没有列表内容的解决办法
  3. Gitlab 项目上传
  4. [UE4]把工程升级到最新版本
  5. oletools下载安装及rtfobj使用
  6. Windows环境下多版本JDK切换
  7. php localeconv() 函数实例讲解
  8. Python3 open()函数参数
  9. 测试运行kafka的时候缺少包的错误
  10. svn使用---在CentOS 7上搭建SVN服务器 及windows搭建svn步骤