Run docker service on HTTPS

后端 未结 2 1125
滥情空心
滥情空心 2021-01-30 23:33

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 i         


        
2条回答
  •  别跟我提以往
    2021-01-31 00:08

    1. You need to configure your web server (inside the docker application) to enable HTTPS.
    2. Open SSL port (443) on docker

      • You can consider using NGINX as a reverse proxy to your webserver and configure SSL in nginx
      • On a side, you can look at letsencrypt to get a free SSL certificate for your domain if this is a public site.

提交回复
热议问题