All Questions
33 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,...
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:...
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 ...
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 ...
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:
...
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-...
-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'
...
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:
...
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 | ...
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-...
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:...
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:...
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-...
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:...
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&...