Swagger implementation to document Rest APIs
This commit is contained in:
parent
a0365437c5
commit
da040d7b02
|
@ -1577,3 +1577,21 @@ services:
|
|||
- postgres
|
||||
volumes:
|
||||
- ${DATA_PATH_HOST}/Confluence:/var/atlassian/application-data
|
||||
|
||||
### SWAGGER EDITOR ############################################
|
||||
swagger-editor:
|
||||
build: ./swagger-editor
|
||||
ports:
|
||||
- ${SWAGGER_EDITOR_PORT}:8080
|
||||
networks:
|
||||
- backend
|
||||
|
||||
### SWAGGER UI ################################################
|
||||
swagger-ui:
|
||||
build: ./swagger-ui
|
||||
environment:
|
||||
- API_URL=${SWAGGER_API_URL}
|
||||
ports:
|
||||
- ${SWAGGER_UI_PORT}:8080
|
||||
networks:
|
||||
- backend
|
|
@ -725,6 +725,15 @@ PGADMIN_PORT=5050
|
|||
PGADMIN_DEFAULT_EMAIL=pgadmin4@pgadmin.org
|
||||
PGADMIN_DEFAULT_PASSWORD=admin
|
||||
|
||||
### SWAGGER EDITOR ###########################################
|
||||
|
||||
SWAGGER_EDITOR_PORT=5151
|
||||
|
||||
### SWAGGER UI ###############################################
|
||||
|
||||
SWAGGER_API_URL=http://generator.swagger.io/api/swagger.json
|
||||
SWAGGER_UI_PORT=5555
|
||||
|
||||
### SONARQUBE ################################################
|
||||
## docker-compose up -d sonarqube
|
||||
## (If you encounter a database error)
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
FROM swaggerapi/swagger-editor:latest
|
||||
|
||||
LABEL maintainer="Miguel Ortiz <miguelortiz1994@outlook.com>"
|
|
@ -0,0 +1,3 @@
|
|||
FROM swaggerapi/swagger-ui:latest
|
||||
|
||||
LABEL maintainer="Miguel Ortiz <miguelortiz1994@outlook.com>"
|
Loading…
Reference in New Issue