Currently, I run a simple docker container by using the following files.
DockerFile
FROM microsoft/aspnet:4.7.1
WORKDIR /inetpub/wwwroot
EXPOSE 80
COPY index.html .
docker-compose.yml
version: '3.4'
services:
testapp:
image: mytestapp:${TAG:-latest}
build:
context: .
dockerfile: Dockerfile
docker-compose.override.yml
version: '3.4'
services:
testapp:
ports:
- "9091:80"
I use windows image to create my container by using the following command and I can access it by http://localhost:9091/.
docker-compose -f docker-compose.yml -f docker-compose.override.yml build
I want to access my app by using HTTPS instead of http.
What are the steps that I need to follow ?
https://localhost:9010/
from the docker host. Should also in this case use NGINX or letsencrypt? Thanks – Barye