Hello to all,
in a docker sworm environment I have N conatainers that expose, on port 8080, some http context (/ application1, / application2 …)
Then I have a container with Apache http server reachable on port 80 where, inside, I configured reverse proxy rules to reach all contexts from the other containers of the type:
ProxyPass / application1 / http: // container1: 8080 / application1 /
ProxyPassReverse / application1 / http: // container1: 8080 / application1 /
This solution works, but it forces me to edit the file with the reverse proxy rules for each new context.
Is there a more “elegant” mechanism to make the management of contexts dynamic?
Thanks