Answers for "connect ECONNREFUSED 127.0.0.1:3306 docker"

0

connect ECONNREFUSED 127.0.0.1:3306 docker

In DB_HOST variable you have to put the database container name instead of 'localhost'

NODE_ENV=development
DB_HOST=db // docker-compose container name
DB_USER=admin
DB_PASSWORD=dbtest
DB_NAME=dbtest
DB_PORT=3306
Posted by: Guest on April-30-2022

Code answers related to "connect ECONNREFUSED 127.0.0.1:3306 docker"

Browse Popular Code Answers by Language