Allow ports to be configured via environment variables#199
Allow ports to be configured via environment variables#199kuhnchris wants to merge 3 commits intopassbolt:masterfrom
Conversation
|
Hi @kuhnchris! Thanks for your PR! I'm not very familiar with pasta but could you explain the scenario where you have conflicting ports? |
|
Hi there @dlen - sorry for the late reply! Ad Network/Pasta: Ad Thanks for reading and all the best, |
|
I see, is this relevant to your use case? containers/podman#7175 (comment) |
|
Sadly no, as that issue is just, as far as I read, about remapping ports from the container to the host, i.e. the container has it's own "available ports" - my case is, that multiple containers share a network, and hence cannot occupy the same port more than once. ;-) |
|
I want this feature too, I have Nginx running on ports 80 and 443. and can't get around that. |
|
What's blocking the review and merge? |
This PR solves a very homeopathic problem with shared networks on docker (in this case: pods in podman, or, in this very special case: networking via
pastain apodwithpodmanwhere other containers already use up the ports requested by the passbolt container).Sadly I was not aware if we need to add the changes over at root-level
scripts/aswell, I only saw them taking effect in thedev/bindocker-entrypoint.The change itself should be fairly self-explainatory, I check the 3 variables and set the ports with some
sedreplacements in thenginx/conf.d/default.confand the/usr/local/etc/php-fpm.d/www.confpool config.Tested locally, but YMMV.