swagger-api / swagger-api/swagger-ui

Showing Base URL: 0.0.0.0:3000/ in docker deployment

Open
#7,217 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

cat: docker type: support
Dominant language
JavaScript
Stars
29k
Forks
9.3k
Avg merge
2d 23h
Merged PRs (30d)
25

Description

Hi,

I have been trying to install swagger-ui docker using below mentioned compose entries.

swagger-ui:
container_name: swagger-ui
image: swaggerapi/swagger-ui
restart: always
environment:
API_URL: http://prime.dcp.infra.local.com/api

After deployment showing -> [ Base URL: 0.0.0.0:3000/ ] in the UI.

Also while clicking "Try it out" , requests are hitting http://0.0.0.0:3000/

Attaching the screenshots,

2021-04-27 20_07_01-Swagger UI — Mozilla Firefox

2021-04-27 20_07_38-Swagger UI — Mozilla Firefox

How can we solve this issue in a docker installation. I didnt find docker ENVs to set - host, basePath and schemes

Please help

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no source files or tests. Start by reproducing the Docker deployment with the shown API_URL and inspect the container's URL and base-path configuration; done means Try it out targets the intended API rather than 0.0.0.0:3000.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, javascript
Domain
devops, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.