-
Notifications
You must be signed in to change notification settings - Fork 215
Allow ports to be configured via environment variables #199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
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.