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

docker-compose up does not connect to postgres #66

Open
MicDeDuiwel opened this issue Oct 29, 2021 · 2 comments
Open

docker-compose up does not connect to postgres #66

MicDeDuiwel opened this issue Oct 29, 2021 · 2 comments

Comments

@MicDeDuiwel
Copy link

MicDeDuiwel commented Oct 29, 2021

As stated in the documentation I download and move the files for the docker-compose development single instance test.

Using the postgres docker-compose manifest I easily get it up and running, but the containers are stuck in a loop and won't connect to postgres:

[+] Running 3/2
⠿ Container biz-db-1 Created 0.0s
⠿ Container biz-wacore-1 Recreated 0.0s
⠿ Container biz-waweb-1 Recreated 0.1s
Attaching to biz-db-1, biz-wacore-1, biz-waweb-1
biz-db-1 | 2021-10-29 12:07:35.663 UTC [1] LOG: listening on IPv4 address "0.0.0.0", port 3306
biz-db-1 | 2021-10-29 12:07:35.663 UTC [1] LOG: listening on IPv6 address "::", port 3306
biz-db-1 | 2021-10-29 12:07:35.667 UTC [1] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.3306"
biz-db-1 | 2021-10-29 12:07:35.692 UTC [25] LOG: database system was shut down at 2021-10-29 09:14:40 UTC
biz-db-1 | 2021-10-29 12:07:35.698 UTC [1] LOG: database system is ready to accept connections
biz-wacore-1 | nc: getaddrinfo for host "db" port 3306: Name or service not known
biz-wacore-1 | Database is not up yet - sleeping
biz-waweb-1 | nc: getaddrinfo for host "db" port 3306: Name or service not known
biz-waweb-1 | Database is not up yet - sleeping
biz-wacore-1 | nc: getaddrinfo for host "db" port 3306: Name or service not known
biz-wacore-1 | Database is not up yet - sleeping

This will just continue and never resolve. I'm also in the process to see what happens when I connect an external postgres db but that also does not seem to work.

@facebook-github-bot
Copy link
Contributor

Hi MicDeDuiwel (https://github.com/MicDeDuiwel),

Thank you for your comment. This GitHub repo is not actively monitored. If you need help, please check previously asked questions in the WA Business API Developer Community, or raise a Direct support ticket. Meanwhile, we are happy to continue with less time-sensitive discussions in GitHub.

Thanks for your understanding!

@MicDeDuiwel
Copy link
Author

I have somewhat fixed this issue but the fix is not sustainable. By changing the bridge type to host everything works, the downside being that port-mapping will not work.

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