I have an Angular application that runs in Docker with an nginx reverse proxy, a container with my back end code and a container with my angular
I need to run the application in HTTPS, with no success. I think I may be doing something wrong but I don’t know where I’m failing.
The application is an Angular 5 application with a .net core back end.
The code is organized this way :
| .env | docker-compose.yml | Front/ | package.json | Dockerfile | src/ | Back/ | Web/ | SaasManager.Web/ | Dockerfile
You can find the content of my root
Front/Dockerfile file, I have :
FROM node:8.9 WORKDIR /var/www/data EXPOSE 4200 CMD npm run docker
npm run docker is defined in my
package.json and runs the following command :
yarn && ./node_modules/@angular/cli/bin/ng serve -dev --public-host host_url:443 --host 0.0.0.0 --disable-host-check -ec
And in the
Back/Web/SaasManager.Web/Dockerfile file, I have the following :
FROM microsoft/dotnet EXPOSE 5001 CMD cd /app/Web/SaasManager.Web && dotnet publish -c Release -o ./out && dotnet ./out/SaasManager.Web.dll
When I run
docker-compose up -d, I try to access to
https://my_url:443 in Chrome but I get a
CONNECTION_REFUSED error. What did I do wrong ?
I hope I didn’t miss something and wish you all a nice day