diff --git a/app/src/persistence/mysql.js b/app/src/persistence/mysql.js index 3e03a70..9fc4077 100644 --- a/app/src/persistence/mysql.js +++ b/app/src/persistence/mysql.js @@ -21,7 +21,12 @@ async function init() { const password = PASSWORD_FILE ? fs.readFileSync(PASSWORD_FILE) : PASSWORD; const database = DB_FILE ? fs.readFileSync(DB_FILE) : DB; - await waitPort({ host, port : 3306}); + await waitPort({ + host, + port: 3306, + timeout: 10000, + waitForDns: true, + }); pool = mysql.createPool({ connectionLimit: 5,