Insteaf of localhost
point to mysql
which is the service name (DNS) that nodejs will resolve into the MySQL container:
DB_HOSTNAME: mysql
And
{
...
host: 'mysql',
...
}
More Related Contents:
- ECONNREFUSED for Postgres on nodeJS with dockers
- How to implement many to many association in sequelize
- static files with express.js
- How can I set cookie in node js using express framework?
- Difference between app.use and app.get in express.js
- MongoDB/Mongoose querying at a specific date?
- express logging response body
- What is the parameter “next” used for in Express?
- Expressjs raw body
- When to use next() and return next() in Node.js
- How to populate a sub-document in mongoose after creating it?
- passport’s req.isAuthenticated always returning false, even when I hardcode done(null, true)
- mongoose custom validation using 2 fields
- req.query and req.param in ExpressJS
- Proxy with express.js
- Redirect all trailing slashes globally in express
- Hooking up express.js with Angular CLI in dev environment
- Use docker run command to pass arguments to CMD in Dockerfile
- Catch all uncaughtException for Node js app
- How to specify HTTP error code using Express.js?
- Passing route control with optional parameter after root in express?
- ENOENT: no such file or directory .?
- Angular 9 SSR 404 Not Found Page with Status code
- How to organise file structure of backend and frontend in MERN
- Getting express server to accept CORS request
- req.session is undefined using express-session
- What is the proper way to check for existence of variable in an EJS template (using ExpressJS)?
- Express.js Routing error: Can’t set headers after they are sent
- body-parser – extended option (qs vs querystring)
- How to limit upload file size in express.js