docker connection from nodejs container to mysql container ECONNREFUSED 127.0.0.1:3308
I have 2 containers, nodejs and mysql, with both configured to use the same network. Inside the nodejs container there is a file that use mysql2 package to create a connection pool from the mysql container, here’s the code that create the connection pool