it's also limiting when I wanna use postgres:// to access a database rather than exposing a port.
What does this mean? I don't understand what you're trying to change, or what you want to achieve.
It would also help to explain how the services are networked now. Post a sanitized compose file for example.