Connecting docker to a subdomain with Cloudflare SSL enabled

I’ve set up Virtualmin without the LEMP bundle for a WordPress site and some Docker projects. Here are the steps I’ve taken:

  1. Created a Virtual Server with the name “webmin. mydomain .com” in the Post-installation wizard.
  2. Changed Webmin’s port to 2087 to make it compatible with Cloudflare SSL.
  3. Added Cloudflare’s Universal SSL to access the server via “webmin. mydomain .com:2087.”
  4. Installed Portainer and Docker, along with a container accessible via “http:// serverip:containerport.”

Now, I’m looking for assistance with the following:

  • Configuring secure access to the container through a subdomain without specifying a port (e.g., “https://cont.mydomain.com/”.
  • Utilizing Cloudflare’s Universal SSL instead of Let’s Encrypt for SSL to avoid renewal hassles.
  • If possible, hiding the server’s IP address behind Cloudflare’s proxy.

I’ve attempted various methods for each step, but I’ve encountered issues along the way. Can someone provide more detailed instructions and steps to achieve these goals?"

Thanks

SYSTEM INFORMATION
OS type and version Ubuntu 22
Webmin version 2.101
Virtualmin version 7.7
Related packages SUGGESTED

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.