Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot connect to postgres without mapping port #45

Closed
johnpitchko opened this issue Aug 15, 2022 · 1 comment
Closed

Cannot connect to postgres without mapping port #45

johnpitchko opened this issue Aug 15, 2022 · 1 comment

Comments

@johnpitchko
Copy link

Howdy, I'm a novice Docker user kludging my way through learning. Was very excited to discover this repo that features a clean implementation of Rails + Docker w/ best practices; thank you!

One issue I encountered what that I could not access/connect to my running Postgres container using the standard config in your docker-compose.yml file. However, once I manually mapped the port, everything worked fine.

Specifically, I had to add the following under the postgres service in docker-compose.yml:

ports:
  - 5432:5432

I assume your implementation works great for you out of the box yet not on my workstation (2021 M1 MacBook Pro). Any thoughts as to why I had to manually map the port in the config?

@nickjj
Copy link
Owner

nickjj commented Aug 15, 2022

Hi,

This issue was covered in #42, it's unrelated to your M1.

@nickjj nickjj closed this as completed Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants