Skip to content

Commit

Permalink
change port, fix readme
Browse files Browse the repository at this point in the history
  • Loading branch information
reloxx13 committed Sep 26, 2023
1 parent 706e303 commit 1e912f8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).

Expand Down Expand Up @@ -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)**



6 changes: 3 additions & 3 deletions docker-compose.swagger-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tests/test.bats
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 1e912f8

Please sign in to comment.