It looks like the script does not support socket.
If I put the socket in host:
"host": "/var/lib/mysql/mysql.sock",
I get the connection error:
2017-09-06 00:28:31 - Initialising Database Connections
2017-09-06 00:28:31 - Database connection failed. Retrying in 10 seconds.
2017-09-06 00:28:31 - SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Name or service not known