phplist-docker icon indicating copy to clipboard operation
phplist-docker copied to clipboard

Waiting for the Database to be available 1/10 getting bigger then 10

Open zewas-digital opened this issue 1 year ago • 2 comments

I am trying to install phpList with Docker. I set the .env variables as shown in link with my own values.

When I deploy the container, it deploys fine, but when I try to access the application, I get a bad gateway error.

When I look in the logs, the message appears: Waiting for database to be available - 1/10 appears. Now this message keeps appearing and I am currently at Waiting for database to become available - 66/10. Do I need to add a database container myself or have I forgotten something?

zewas-digital avatar Jan 15 '24 14:01 zewas-digital

Yes, you need to give a valid end-point for a DB connection. That can be another container, or a different server. Interesting it goes over 10, I will look into that. The idea is that if it didn't work in 10 steps, it's unlikely to work, so it should stop after 10 iterations. When you bring up two containers, it can take a little while for the DB to be ready, which is why this delay is there.

michield avatar Feb 10 '24 11:02 michield