eaudeweb/redmine.docker

The stack does not start when the DB server is external service

Closed this issue · 0 comments

If the MySQL service is hosted on a separate server, such as 192.168.10.5 the stack does not start and shows this error:

mysql: forward host lookup failed: Host name lookup failure : Resource temporarily unavailable
Waiting for mysql server mysql:3306 ..

Due to the hard-coding in entrypoint.sh

while ! nc -z mysql 3306; do
    echo "Waiting for mysql server mysql:3306 ..."
    sleep 1
done