Installing WebMO on Docker
Posted: Fri Oct 13, 2023 9:11 am
Dears,
We have a workstation where we would like to expose several services such as WebMO and other software programs. For this reason, we are interested in installing WebMO using Docker. I have created some instructions to create a Debian image and the container using Apache:
https://github.com/nom05/docker-webmo-debian
In addition, I have found an equivalent way by means of Ubuntu:
https://gitlab.oit.duke.edu/webmo/webmo-docker
The container works correctly with the port redirection, for example: http://my_domain.com:8080/webmo
The problem of my image is when we need to add it to a Docker router called Traefik to include our certificates and transform the previously said address to https://my_domain.com/webmo, for example. In addition, a middleware (login portal, IP filter, etc.) is very easy to add to Traefik.
My problem is that the redirection explained in your excellent documentation conflicts with the router configuration and the container does not work with Traefik when you access to https://my_domain.com/webmo. I think it could work if the container was directly exposed as http://my_domain.com:8080 to use the Perl cgi_bin and so on instead of using either http://my_domain.com:8080/webmo or ~webmo/cgi_bin/... .
I know I am not strictly following the instruction to install WebMO but it could be a very good opportunity to expand the flexibility to install WebMO in a standardize platform such as Docker and Kubernetes. It would be a very good idea to have an official Docker image as well to facilitate WebMO's installation in different GNU/Linux distributions.
Thank you in advance
We have a workstation where we would like to expose several services such as WebMO and other software programs. For this reason, we are interested in installing WebMO using Docker. I have created some instructions to create a Debian image and the container using Apache:
https://github.com/nom05/docker-webmo-debian
In addition, I have found an equivalent way by means of Ubuntu:
https://gitlab.oit.duke.edu/webmo/webmo-docker
The container works correctly with the port redirection, for example: http://my_domain.com:8080/webmo
The problem of my image is when we need to add it to a Docker router called Traefik to include our certificates and transform the previously said address to https://my_domain.com/webmo, for example. In addition, a middleware (login portal, IP filter, etc.) is very easy to add to Traefik.
My problem is that the redirection explained in your excellent documentation conflicts with the router configuration and the container does not work with Traefik when you access to https://my_domain.com/webmo. I think it could work if the container was directly exposed as http://my_domain.com:8080 to use the Perl cgi_bin and so on instead of using either http://my_domain.com:8080/webmo or ~webmo/cgi_bin/... .
I know I am not strictly following the instruction to install WebMO but it could be a very good opportunity to expand the flexibility to install WebMO in a standardize platform such as Docker and Kubernetes. It would be a very good idea to have an official Docker image as well to facilitate WebMO's installation in different GNU/Linux distributions.
Thank you in advance