SSL connection to Docker container

    • OMV 3.x (stable)

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • SSL connection to Docker container

      Hi there,

      I´m trying out Docker for some days now and it seems that my Nextcloud container is running fine. It´s working via port 80 and is reachable from internet. There´s no simple way of implementing SSL in the container. OMV itself is set to always use SSL on port 443, but how do I have to configure OMV/Docker to use SSL even for Docker container ("redirect"/"reverse proxy"?)

      Thanks in advance,

      Thomas

      The post was edited 1 time, last by _thomas_ ().

    • Hello _thomas_, I'm exactly on the same situation, my Docker config for Nextcloud with a proxy and LetsEncrypt is fully functional on my linux desktop (test box) but on OVM it's only acception port 80, haven't figured out how to open 443 traffic for the Docker containers. Have you solved this, has anyone ran into this before?

      Thanks guys,

      Manro
    • macom wrote:

      Might be I did not get the problem, but why not change the ports of OMV in the GUI of OMV in General Settings.
      Thanks macom, already tried that, actually in order to have the Nextcloud container working with port 80 it's necessary (AFAIK) to change the OMV web GUI from port 80 to something different, 8080 in my case.

      I did the same thing to port 443 of the OMV web GUI, changed it to port 8443 even when it was not configured to use SSL connection just in case, but still cannot reach the Docker container on port 443.

      Any help will be greatly appreciated.

      Thanks guys!
    • Does your docker allow configuration of the ports it listens on? Those that have that capability usually do it by configuring a port on the host that is forwarded to one in the container via an environment variable like this:

      -p xxxx:yyyy

      Where xxxx is the port the host is listening on and yyyy is a the port the container is listening on.

      Have you consulted the documentation for the specific docker you are using?
      OMV 4.x - ASRock Rack C2550D4I - 16GB ECC - Silverstone DS380
    • gderf wrote:

      Does your docker allow configuration of the ports it listens on? Those that have that capability usually do it by configuring a port on the host that is forwarded to one in the container via an environment variable like this:

      -p xxxx:yyyy

      Where xxxx is the port the host is listening on and yyyy is a the port the container is listening on.

      Have you consulted the documentation for the specific docker you are using?
      Thanks gderf, to be honest I'm pretty new to it, but if I understood it correctly can I do something like -p 8043:443 to forward port 8043 from host to port 443 on the container?

      I've read the Docker documentation on how to make Nextcloud with a proxy, mysql and letsencrypt and actually it's working like a charm on my test environment, and old desktop running Ubuntu 17.10 with docker on it, but I haven't found a way to make it work on OMV.

      Rgds,
    • gderf wrote:

      Does your docker allow configuration of the ports it listens on? Those that have that capability usually do it by configuring a port on the host that is forwarded to one in the container via an environment variable like this:

      -p xxxx:yyyy

      Where xxxx is the port the host is listening on and yyyy is a the port the container is listening on.

      Have you consulted the documentation for the specific docker you are using?
      Thanks gderf, to be honest I'm pretty new to it, but if I understood it correctly can I do something like -p 8043:443 to forward port 8043 from host to port 443 on the container?

      I've read the Docker documentation on how to make Nextcloud with a proxy, mysql and letsencrypt and actually it's working like a charm on my test environment, and old desktop running Ubuntu 17.10 with docker on it, but I haven't found a way to make it work on OMV.

      Rgds,