https with docker

Hello, I am using lpar2rrd in form of a docker. It works fine. But in "legacy" approach (sepparate installation of apache etc) there was an option of enabling https in apache (mod_ssl).

How can I achieve the same with docker? I dont see port 443 being exposed by image:

 "ExposedPorts": {

          "80/tcp": {},

          "8162/tcp": {}

        },


But according to manual Docker Monitoring (lpar2rrd.com) you are forwarding   443/tcp and even 22/tcp port.

I have my own cert, key and ca file. Could you pease advize?

Comments

  • Hello,

    there is no SSH server running in container as you can easily get command line access via docker exec . So we don't need to expose port 22.

    Regarding HTTPS: it should work in docker version as there is Apache running inside the container, but we don't support it yet. You can use docker host as HTTPS proxy with your certificates and forward requests to container port 80.

    We can try to modify Dockerfile to use .env file with configuration and mounted certificates, but it's not priority now.

Sign In or Register to comment.