WhatsApp / WhatsApp-Business-API-Setup-Scripts

The scripts related to setting up WhatsApp business API
MIT License
414 stars 438 forks source link

docker-compose up does not connect to postgres #66

Open MicDeDuiwel opened 2 years ago

MicDeDuiwel commented 2 years ago

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 commented 2 years ago

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 commented 2 years ago

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.