Joel Talom:
Hello guys, I am following along the Docker for beginners course. Now i am trying the deploy simple voting APP (https://github.com/mmumshad/kubernetes-example-voting-app). Now i am having some trouble starting the worker-app. The worker-app requires redis (redis) and postgres (db) databases. Both of them are running. Every time when running the worker-app i am getting the message " waiting for db". As you can see both redis and postgres are running. How can i get more logs to understand why worker-app not able to connect to db ?
Joel Talom:
for your information when i run postgres db i had specify the password as option as it won’t let me without a password being specified. Maybe it is the issue ?
Joel Talom:
i believe i need to set the parameter POSTGRES_HOST_AUTH_METHOD: “trust” when running docker run. can’t see how to do it yet
unnivkn:
Hi @Joel Talom fyr: https://kodekloud.com/community/t/docker-compose-example-command-when-trying-out/160727
Joel Talom:
the password i was using when starting the instance was wrong. So i had to check the docker-compose-yml file to see the correct username and password for postgres
Joel Talom:
thanks again
![2022-08-20 06_44_26-Ubuntu22.04 [Running] - Oracle VM VirtualBox.png](/uploads/db1265/optimized/3X/b/c/bce230023df4ae00d1e2827322ff2286f95c571f_2_690x143.png)
![2022-08-20 06_45_21-Ubuntu22.04 [Running] - Oracle VM VirtualBox.png](/uploads/db1265/optimized/3X/9/8/98b0d384a3b761277ecf1bc50ddf03d2eef8544e_2_690x81.png)