campsych / concerto-platform

Concerto Platform - Open-Source Online Adaptive Testing Platform
https://concertoplatform.com/
Apache License 2.0
153 stars 88 forks source link

"timeout occurred after waiting 300 seconds for database:3306" after reboot server #305

Closed mrmevlut closed 4 years ago

mrmevlut commented 4 years ago

Hello.

When I restart the server, although mysql and nginx are running, I do docker-compose up -d every time to access concerto or I get a 502 error.

thank you

mrmevlut commented 4 years ago

update

the error is "timeout occurred after waiting 300 seconds for database:3306" after reboot server

bkielczewski commented 4 years ago

There are multiple ways on a Linux system to make it run things at startup or even with Docker.

For example, you could change restart policy in your docker-compose.yml from on-failure to unless-stopped. Both for database and concerto. This makes them run every time Docker daemon is restarted (i.e. after server restart).

mrmevlut commented 4 years ago

Thank you very much it's done!