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

Dockerise the angular server #2

Open
AlexandreChasseteau opened this issue Nov 30, 2020 · 0 comments
Open

Dockerise the angular server #2

AlexandreChasseteau opened this issue Nov 30, 2020 · 0 comments

Comments

@AlexandreChasseteau
Copy link

Dockerise angular server troublshooting

Meanwhile the docker-compose up works and the container starts, it's not working. The angular server is correctly running inside the container but not accessible from outside. The port looks to be correctly forwarded but don't work (cant getw port 4200 of the container).

See the dockerfile in the front directory to have details about the deployment.

Trouble shooting Details :

Once the container started, logs show it listen on localhost:4200

Inside the container (through the cli) wget "localhost:4200" return a valid html page

Outside the container, from a internet browser localhost:4200 return a ERR_EMPTY_RESPONSE error code

Outside the container wget "localhost:4200" return the following message :

wget : La connexion sous-jacente a été fermée : La connexion a été interrompue de manière inattendue.
Au caractère Ligne:1 : 1

  • wget "http://localhost:4200"
  •   + CategoryInfo          : InvalidOperation : (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebEx
     ception
      + FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
    
    

the port is correctly defined on docker-compose : ports: "4200:4200".

I couldn't pushed my files in a new branch so i had to zip it (find it there : https://uptobox.com/n2ggexz68p1s )

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

No branches or pull requests

1 participant