diff --git a/README.md b/README.md index a0d1253..1062721 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ ## What is ddev-swagger-ui? -This repository provides [Swagger UI](https://swagger.io/tools/swagger-ui/) as a [DDEV](https://ddev.com/) add-on to serve a web-ui for a OpenAPI/Swagger file. +This repository provides [Swagger UI](https://swagger.io/tools/swagger-ui/) as a [DDEV](https://ddev.com/) add-on to serve a web-ui for a [OpenAPI/Swagger](https://swagger.io/resources/open-api/) (api documentation) file. This addon is based on the [Swagger UI Docker Image](https://hub.docker.com/r/swaggerapi/swagger-ui). @@ -36,6 +36,6 @@ To upgrade your version of ddev-swagger-ui, repeat the `ddev get ddev/ddev-swagg * SWAGGER_JSON=/var/www/html/swagger.json * SWAGGER_JSON_URL= -**Contributed and maintained by [@rfay](https://github.com/rfay) and [@reloxx13](https://github.com/reloxx13)** + diff --git a/docker-compose.swagger-ui.yaml b/docker-compose.swagger-ui.yaml index 8a56c41..4b5b08e 100644 --- a/docker-compose.swagger-ui.yaml +++ b/docker-compose.swagger-ui.yaml @@ -2,7 +2,7 @@ version: '3.6' services: swagger-ui: container_name: ddev-${DDEV_SITENAME}-swagger-ui - image: swaggerapi/swagger-ui + image: swaggerapi/swagger-ui:latest restart: "no" expose: - 8080 @@ -11,8 +11,8 @@ services: com.ddev.approot: ${DDEV_APPROOT} environment: - VIRTUAL_HOST=$DDEV_HOSTNAME - - HTTP_EXPOSE=8080:8080 - - HTTPS_EXPOSE=8080:8080 + - HTTP_EXPOSE=8088:8080 + - HTTPS_EXPOSE=8089:8080 - PORT=8080 - BASE_URL=/ - SWAGGER_JSON=/var/www/html/swagger.json diff --git a/tests/test.bats b/tests/test.bats index 0dde0d6..1a97305 100644 --- a/tests/test.bats +++ b/tests/test.bats @@ -16,7 +16,7 @@ health_checks() { # Do something useful here that verifies the add-on # Make sure we can hit the 8080 port successfully from outside - curl -s -I -f https://${PROJNAME}.ddev.site:8080 >/tmp/curlout.txt + curl -s -I -f https://${PROJNAME}.ddev.site:9081 >/tmp/curlout.txt } teardown() {