I currently have a VM running nginx, UFW, and let’s Encrypt to force all traffic over https to multiple websites in my network. I’m starting to “dockerize” some of my services (not all of them), and wanted to try getting nginx running in a container.
There were a lot of steps to get my nginx VM working. I had to install UFW, nginx, Let’s Encrypt (with certbot). I had to configure UFW, add server blocks for nginx, create symbolic links, run nginx commands, run Let’s Encrypt commands, etc.
It looks like a lot of people use the proxy companion, but I’m not sure if that only sets up nginx to work with services running in a docker container. Is it possible to use the companion to reverse proxy traffic for a subdomain to an internal http://172.16.68.99:6666 in addition to pointing to docker containers?
ETA: I just realized, for those services that aren’t in containers, would it be possible to create an Apache container to redirect to my non-container service, or would that break the proxy?