Expose the DB port to the host machine so it's easy to use tools like TablePlus
During development, it's very convenient to connect to the database using tools like TablePlus. I think these tools are very helpful for developers to quickly get feedback on the data they're working with. I guess it's better to go for a non-default postgres port in order to avoid issues if the developer already has postgres running through brew services.
Hi,
There is an open issue for this at: https://github.com/nickjj/docker-rails-example/issues/42
I'm on the fence about it based on the comments in that thread but thank you for the contribution.
I see, but allowing connections only from the host machine should be a safe choice, no?