Expose public port #2576
Thijmen
started this conversation in
Improvement Requests
Replies: 2 comments 1 reply
-
|
I noticed this as well and I'm also curious. Trying to expose a redis service spins up another container with nginx and I can't reach my redis instance over the internet. |
Beta Was this translation helpful? Give feedback.
1 reply
-
|
@Thijmen You can achieve this using Port mapping. You do not have to use the "make publicly available" as "Port mapping" also exposes the host port to the public if that is what you want. It maps the container port to the desired host port. https://coolify.io/docs/knowledge-base/databases#ports-mapping-vs-public-port |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi there,
For services it's an option to make it "publicly available". It then spins up an nginx proxy which proxies the port to the internal container.
I wonder why this method has been chosen and not restarting the service with that port specifically exposed to the host. In my opinion, that makes the most sense. However, I may forget about a situation where this is not possible.
What is the reason behind this decision?
Beta Was this translation helpful? Give feedback.
All reactions