【发布时间】:2018-03-20 06:24:27
【问题描述】:
我试图用 docker 为我的应用程序连接 swagger-ui,“try-it-out” url 指向 localhost:8080,有没有办法指定 try url?下面是我的 docker-compose 配置。
swagger:
image: "swaggerapi/swagger-ui"
depends_on:
- application-xxx
deploy:
replicas: 1
restart_policy:
condition: always
ports:
- "8080:8080"
environment:
- API_URL= http://0.0.0.0:52204/swagger.json
这是我一直在使用的 docker 镜像:https://hub.docker.com/r/swaggerapi/swagger-ui/
【问题讨论】:
-
swagger.json 文件中的
host和port是什么? -
我相信图片里面就是:swaggerapi/swagger-ui。我一直使用的图片是公开托管的,只是想知道是否有办法更改试用网址
标签: java swagger swagger-ui