docker-rails-example icon indicating copy to clipboard operation
docker-rails-example copied to clipboard

Expose the DB port to the host machine so it's easy to use tools like TablePlus

Open sekmo opened this issue 1 year ago • 2 comments

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.

sekmo avatar Oct 27 '24 15:10 sekmo

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.

nickjj avatar Oct 27 '24 16:10 nickjj

I see, but allowing connections only from the host machine should be a safe choice, no?

sekmo avatar Oct 28 '24 09:10 sekmo