Skip to main content

All Questions

0 votes
0 answers
27 views

Intermittent Connection Issues with Sequelize Migrations in Docker Compose Setup [duplicate]

I am using Docker Compose to set up my application, which consists of three services: a MySQL database, a backend API, and a Vue.js frontend. My backend uses Sequelize for database migrations. However,...
Mikhail's user avatar
  • 15
0 votes
0 answers
13 views

Connection refused when using Sequelize with MySQL running on Docker [duplicate]

I am building a dockerized API with MYSQL. I have already set up a network between the two services but Sequelize is returning a connection refused error. Here is my Dockerfile for the API FROM node:...
Emerson Lima's user avatar
0 votes
0 answers
56 views

Sequelize in Docker Container Fails to Connect to PostgreSQL Database - ECONNREFUSED Error

I’m facing an issue where my user-service Docker container fails to connect to my PostgreSQL database container using Sequelize. I keep getting the ECONNREFUSED error, and I’ve tried multiple steps to ...
Ghost's user avatar
  • 1
0 votes
1 answer
47 views

Sequelize in test files doesnt get test environment

I´m using sequelize as ORM and jest for testing. Im running two databases currently with docker compose (test and development). Environment variables are correct in console.log. For one rease Database ...
Tomi1368's user avatar
0 votes
0 answers
88 views

Unable to connect to MySQL database: ConnectionRefusedError [SequelizeConnectionRefusedError]: connect ECONNREFUSED 172.20.0.2:3306

I running docker compose but for some reason i cant figure out, the node_server container cannot run, it keep exiting due the above error. Here is my docker compose files services: mysqldb: ...
TeddPaul13's user avatar
1 vote
0 answers
73 views

Can't get connected to mysql db using sequelize and docker

I am Trying to connect to Mysql database using docker-compose in node.js ConnectionRefusedError [SequelizeConnectionRefusedError]: connect ECONNREFUSED 192.168.32.2:3306 here is how my docker-...
Luka Akhalbedashvili's user avatar
-1 votes
2 answers
133 views

Docker compose - Node Express Sequelize Mysql connection error

I'm trying to dockerize a Node express server with MYSQL database with sequelize.js ORM. How can i solve this issue connecting to the database This is my docker-compose.yml file version: '3.9' ...
Sreesanth's user avatar
0 votes
0 answers
740 views

Nodejs Sequelize instance timeout when connecting to mysql container

I have a Node.js server running on an Ubuntu-20.04 Virtual Machine. I'm using docker compose to setup a mysql container with a production database. My docker-compose.yml file is like so, prod_db: ...
Orwellian Mentat's user avatar
0 votes
1 answer
3k views

Sequelize db:migrate command not working in docker getting error

I am getting below error while running npx sequelize db:migrate Sequelize CLI [Node: 16.14.0, CLI: 6.4.1, ORM: 6.12.5] node_api | node_api | node_api | node_api | ...
Kammy's user avatar
  • 431
0 votes
0 answers
14 views

Connection refused sequelize server to mysql database [duplicate]

I have a server application and a client application at the same folder level, where I also have a docker-compose.yaml file. This is my docker-compose.yaml file: version: "3.8" volumes: my-...
Filipe Costa's user avatar
1 vote
1 answer
4k views

Cannot connect to Postgres database with Sequelize using docker-compose

I can't manage to authenticate my postgres database. I am using docker-compose. Please find below the relevant files and logs. Is something about my connection string wrong? docker-compose.yml version:...
rovms's user avatar
  • 13
1 vote
0 answers
563 views

Unable to perform postgres migrations when using docker compose

I have postgres & pgadmin running in the same network & a node-express app running locally localhost:3000. I am using sequelize orm. After running the migration using npx sequelize-cli db:...
Perry's user avatar
  • 324
7 votes
5 answers
12k views

How to run Sequelize migrations inside Docker

I'm trying to docerize my NodeJS API together with a MySQL image. Before the initial run, I want to run Sequelize migrations and seeds to have the tables up and ready to be served. Here's my docker-...
Traveling Tech Guy's user avatar
1 vote
1 answer
1k views

SequelizeConnectionRefusedError: connect ECONNREFUSED 127.0.0.1:4321

I'm using Sequelize ORM with PostgreSQL dialect hosted in a docker container running at localhost. The app is running through port 3050 and the database through port 5432 redirected to 4321. The error:...
Erick Matheus's user avatar
0 votes
0 answers
3k views

SequelizeAccessDeniedError: Access denied for user 'root'@'172.19.0.1'

I'm building a project consist of nodejs and mysql (from docker). However I have some problem when connecting with mysql. Config module.exports = { HOST: "127.0.0.1", USER: "root&...
Lewis Tran's user avatar

15 30 50 per page