You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To successfully run an lb4 app inside a docker container, it was necessary to change the host to '0.0.0.0' in order to access the REST server running in that docker container from a browser.
I double-checked with @BINIAM , to see if he would need to do the same. He did. And suggested a change in the generated index.js of a scaffolded application:
This issue has been marked stale because it has not seen activity within six months. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository. This issue will be closed within 30 days of being stale.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS file at the top-level of this repository.
Description
To successfully run an lb4 app inside a docker container, it was necessary to change the host to '0.0.0.0' in order to access the REST server running in that docker container from a browser.
Related to : #1606
See : https://loopback.io/doc/en/lb4/deploying_to_ibm_cloud_kubernetes.html
I double-checked with @BINIAM , to see if he would need to do the same. He did. And suggested a change in the generated index.js of a scaffolded application:
See : #1606 (comment)
@bajtos suggested that we refresh our understanding historical discussions of 'localhost' vs '0.0.0.0' and why 'localhost' was chosen:
See : #1606 (comment)
There may be several different approaches to take since there are multiple places to specify server host values.
In config.rest options, or config.rest.openApiSpec options, etc
Investigate each possibility, and outline their pros and cons.
The text was updated successfully, but these errors were encountered: