swagger ui
2024-10-20 13:28:46
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 /
.
最新文章
- c++调用lua
- 关于IoCallDriver使用的疑惑
- .split()函数使用方法
- 【转】SQL Server与Oracle的区别
- Knockout.Js学习目录
- 289. Game of Life
- [zz] Install VSFTP
- iOS开发笔记-两种单例模式的写法
- C++ - 派生类访问模板基类(templatized base class)命名
- ubuntu 更改默认亮度
- Java 局部变量、实例变量、类变量(静态变量)区别
- codeforces 809E Surprise me!
- Codeforces 343E Pumping Stations
- SpriteBuilder复杂CCB在App场景加载时报错排查
- (转)ArcGIS Runtime for Android 使用异步GP服务绘制等值线
- 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解决办法
- 阿里P9架构师讲解从单机至亿级流量大型网站系统架构的演进过程
- ubuntu 配置拼音输入法步骤
- 017 SpringMVC中CRUD实例
- bootstrap之双日历时间段选择控件—daterangepicker(汉化版)
热门文章
- caffe跑densenet的错误:Message type ";caffe.PoolingParameter"; has no field named ";ceil_mode";.【转自CSDN】
- dede模块管理一片空白或没有列表内容的解决办法
- Gitlab 项目上传
- [UE4]把工程升级到最新版本
- oletools下载安装及rtfobj使用
- Windows环境下多版本JDK切换
- php localeconv() 函数实例讲解
- Python3 open()函数参数
- 测试运行kafka的时候缺少包的错误
- svn使用---在CentOS 7上搭建SVN服务器 及windows搭建svn步骤