You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When i activate Port Mapping on my postgresql instance (6543:5432) it maps not only to localhost but all interfaces (0.0.0.0:6543->5432/tcp, [::]:6543->5432/tcp) and makes the instance publicly available. When i then try to make it publicly available on the same port it obviously cant and gives an error:
l484ccc-proxy Pulling
l484ccc-proxy Pulled
Service l484ccc-proxy Building
Service l484ccc-proxy Built
time="2025-01-06T13:33:19+01:00" level=warning msg="Found orphan containers ([cw40k40csgkkso48oc44wogs-proxy coolify-proxy]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up."
Container l484ccc-proxy Creating
Container l484ccc-proxy Created
Container l484ccc-proxy Starting
Error response from daemon: driver failed programming external connectivity on endpoint l484ccc-proxy (492c29bf16ce762ddeb8361102cc12bfb3b6b46a1f698508281b715f1f3c6590): Bind for 0.0.0.0:6543 failed: port is already allocated
Steps to Reproduce
Start PostgreSQL
Use Port Mapping
Example Repository URL
No response
Coolify Version
v4.0.0-beta.380
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered:
knurzl
added
🐛 Bug
Reported issues that need to be reproduced by the team.
🔍 Triage
Issues that need assessment and prioritization.
labels
Jan 6, 2025
knurzl
changed the title
[Bug]: Port Mapping maps to 0.0.0.0 and not localhost making accessible from the internet
[Bug]: Port Mapping maps to 0.0.0.0 and not localhost making it accessible from the internet
Jan 6, 2025
I have found myself struggling with Port Mappings in Coolify too... Why you wanna not use default port mappings?
Coolify uses their own way of finding the correct instances by name and that generally works.
I have found myself struggling with Port Mappings in Coolify too... Why you wanna not use default port mappings? Coolify uses their own way of finding the correct instances by name and that generally works.
I don't struggle with it. It does not what it should. 🙈
Aside from that it's a security risk as it exposes a service to the internet, when not having a firewall. It should only map like
(6543->5432/tcp) and not like (0.0.0.0:6543->5432/tcp, [::]:6543->5432/tcp).
And yes know that i don't need it, but it's a nice feature and i would like to use it appropriately.
Error Message and Logs
When i activate Port Mapping on my postgresql instance (6543:5432) it maps not only to localhost but all interfaces (0.0.0.0:6543->5432/tcp, [::]:6543->5432/tcp) and makes the instance publicly available. When i then try to make it publicly available on the same port it obviously cant and gives an error:
Steps to Reproduce
Example Repository URL
No response
Coolify Version
v4.0.0-beta.380
Are you using Coolify Cloud?
No (self-hosted)
Operating System and Version (self-hosted)
No response
Additional Information
No response
The text was updated successfully, but these errors were encountered: