Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Showing Base URL: 0.0.0.0:3000/ in docker deployment #7217

Open
rinshadka opened this issue Apr 27, 2021 · 3 comments
Open

Showing Base URL: 0.0.0.0:3000/ in docker deployment #7217

rinshadka opened this issue Apr 27, 2021 · 3 comments

Comments

@rinshadka
Copy link

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

@cirdes
Copy link

cirdes commented Oct 12, 2021

Same problem here!

@cirdes
Copy link

cirdes commented Oct 13, 2021

@rinshadka, I realize that problem was on Postgrest, the host address was "0.0.0.0:3000" and swagger are just displaying it. Try to http://prime.dcp.infra.local.com/api and look for "0.0.0.0:3000".

Try to change PGRST_OPENAPI_SERVER_PROXY_URI from "0.0.0.0:3000" to http://prime.dcp.infra.local.com/api

@Gershon-A
Copy link

@rinshadka, I realize that problem was on Postgrest, the host address was "0.0.0.0:3000" and swagger are just displaying it. Try to http://prime.dcp.infra.local.com/api and look for "0.0.0.0:3000".

Try to change PGRST_OPENAPI_SERVER_PROXY_URI from "0.0.0.0:3000" to http://prime.dcp.infra.local.com/api

You save my day.
Thank You!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants