Could not connect to the database

Error:php_network_getaddresses: getaddrinfo failed: Name or service not known