-
Notifications
You must be signed in to change notification settings - Fork 196
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
Allow ports to be configured via environment variables #199
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. |
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
pasta
in apod
withpodman
where 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/bin
docker-entrypoint.The change itself should be fairly self-explainatory, I check the 3 variables and set the ports with some
sed
replacements in thenginx/conf.d/default.conf
and the/usr/local/etc/php-fpm.d/www.conf
pool config.Tested locally, but YMMV.