Swagger UI and Editor
cd ~/work-swagger/
git clone https://github.com/finfra/swagger
cd swagger
docker build --rm -t nowage/swagger:v1.0 .
docker rm -f swagger-ui
docker run \
-d \
--name swagger-ui \
--hostname swagger-ui \
--network swagger-net \
-p 8080:8080 \
-e SWAGGER_JSON=/usr/share/nginx/html/json/swagger.json \
-e SWAGGER_JSON_URL=http://$(hostname):8080/json/swagger.json \
-v ${PWD}/json:/usr/share/nginx/html/json/ \
nowage/swagger:v1.0
sleep 1
curl localhost:8080
curl localhost:8080/json/s.json |head
curl localhost:8080/json/swagger.json |head