markusfalk / ng-dockerize

Schematics to add docker configuration files to angular app.
MIT License
0 stars 0 forks source link

add proxy to nginx #16

Open markusfalk opened 5 years ago

markusfalk commented 5 years ago

nginx reverse proxy cannot connect to host's localhost

markusfalk commented 5 years ago

https://github.com/docker/compose/issues/3800

markusfalk commented 5 years ago

https://stackoverflow.com/questions/38346847/nginx-docker-container-502-bad-gateway-response

markusfalk commented 5 years ago

So running Angular in the host to access back-ends running locally won't work:

"The host networking driver only works on Linux hosts, and is not supported on Docker for Mac, Docker for Windows, or Docker EE for Windows Server."

https://docs.docker.com/network/network-tutorial-host/#goal