Public | Automated Build

Last pushed: 6 days ago
Short Description
Swagger UI 2.2.8 with API_URL, API_KEY and OAUTH2 injection (45 MB)
Full Description

swagger-ui

Swagger UI 2.2.10 with API_URL, API_KEY and OAUTH2 injection (45 MB)

Usage

$ docker run -d -p 80:80 -e API_URL=http://localhost:4000/swagger schickling/swagger-ui

Variables

  • API_URL - Swagger endpoint for your API
  • API_KEY - Default API Key (optional)
  • PORT - Default port to run on (optional)
  • VALIDATOR_URL - Swagger validator (optional)
  • OAUTH_CLIENT_ID - oAuth2 client ID (optional, use empty to remove)
  • OAUTH_CLIENT_SECRET - oAuth2 client secret (optional, use empty to remove)
  • OAUTH_REALM - oAuth2 realm (optional, use empty to remove)
  • OAUTH_APP_NAME - oAuth2 app name (optional, use empty to remove)
  • OAUTH_ADDITIONAL_PARAMS - oAuth2 query string additional params (optional)

Variable value **None** should not be used for above defined variables.

Docker Pull Command
Owner
schickling
Source Repository

Comments (7)
lavoweb
2 months ago

docker exec -it desperate_ptolemy sh
splitkron
2 months ago

how to enter container ??

mdhtr
8 months ago

Thanks for putting this together!

Is there a way somehow to customize the JSON Schema validation url too (or just to set it null) -- like the api url? (the reason for me asking is this: http://stackoverflow.com/questions/27808804/swagger-ui-shows-error-validation-when-deployed)

marcofranssen
8 months ago

Is there a way to get the API_URL from a linked container in docker-compose?

Following is what I have been trying, but can't find a way to get it working.

swagger-ui:
  image: schickling/swagger-ui
  ports:
    - 8080:80
  links:
    - user-service:usersvc
  environment:
    - API_URL=usersvc
rde79
9 months ago

Hi, in the container there is the env variable SWAGGER_JSON that is set to /app/swagger.json; I understood that it is a way to indicate a local .json file with the swagger specification of my api.
I tried to cp a myswagger.json into the container (in the folder app) but nothing wrong. In particular I cannot see the myswagger.json in the folder app of the container.

Some suggestions?

rivetmichael
a year ago

+1

untoldone
a year ago

Thanks for putting this together. The addition of version tags would help achieve a consistent production environment.