Questions tagged node.js

Explore the latest questions and answers asked by our top developers.

vue not found in docker container

I am trying to run vue/cli in a docker container. I started the container went to cli of the container through docker exec -it command and entered the command npm install @vue/cli. Now, when I see the package.json file of the container, I see the package installed but when I try to create a project […]

By Viraj D
Published
Categorised as docker, docker-container, node.js, vue-cli, vue.js Tagged , , , ,

Configure Nginx to serve Static files of Angular and also reverse proxy for express

i’m very new to Nginx and want to use it for serving static angular files and also proxy to a backend express server. I’m also dockerizing the frontend (with nginx) and the backend. In the frontend i only have a button thats making a request and getting some data from express. Everytime i try this, […]

By Faruk Kara
Published
Categorised as angular, docker, express, nginx, node.js Tagged , , , ,

Getting error "cURL error 7: Failed to connect to localhost port" when calling API from another container

I am dockerizing an app that has several different services and I have used the Docker Compose file to achieve this Single docker-compose.yml file for all the services and one Dockerfile for each service. Frontend(angular)[http://localhost:4200] Backend(PHP)[http://localhost:80] Backend Database(Mysql) Integration Service(NodeJS)[http://localhost:4433] Integration Service Database(MongoDB) Authentication Layer(NodeJS)[http://localhost:4454] Authentication Layer Database(Mysql) So far I have successfully containerized all […]

By Shaikh Tayab
Published
Categorised as docker, node.js, php Tagged , ,

heroku docker bundle not found error // i’m trying to deploy dockerfile to heroku but it always says me bundle not found

i’m trying to run docker on heroku so i tried "git add heroku.yml" "git commit m "Add yml" "git heroku push" but as you can see here, heroku log shows me this logs 2022-01-24T04:10:12.979291+00:00 heroku[web.1]: Restarting 2022-01-24T04:10:15.729676+00:00 app[api]: Remove PATH config vars by user [email protected] 2022-01-24T04:10:15.729676+00:00 app[api]: Release v37 created by user [email protected] 2022-01-24T04:10:15.965096+00:00 heroku[web.1]: […]

By JOONGYU HAN
Published
Categorised as docker, express, heroku, javascript, node.js Tagged , , , ,

Error: Cannot find module ‘nuxt-i18n’ and odcker-compose up does not start

What I want to solve I’m using docker-compose with Nuxt foront and Rails for the backend, and when I tried to use Jest for testing Nuxt, I found that I needed to switch versions. So I changed from node:14.4.0-alpine to node:14.15.5-alpine and tried to install Jest, but I got a nuxt-i18n’ error when building node:14.15.5-alpine’. […]

Error: Cannot find module ‘nuxt-i18n’ and docker-compose up does not start

What I want to solve I’m using docker-compose with Nuxt foront and Rails for the backend, and when I tried to use Jest for testing Nuxt, I found that I needed to switch versions. So I changed from node:14.4.0-alpine to node:14.15.5-alpine and tried to install Jest, but I got a nuxt-i18n’ error when building node:14.15.5-alpine’. […]

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: "3.8" services: app: build: context: ./ target: dev volumes: – .:/src command: npm run start:dev ports: – "3000:3000" depends_on: – postgres environment: DATABASE_URL: postgres://[email protected]/codes POSTGRES_PASSWORD: password […]

Knex migration command result in error: Timeout acquiring a connection

I’m building a backend project with Docker as my environment plus Node 17+ Knex ^1.0.1 PG ^8.7.1 PostgreSQL 14.1-alpine I was able to connect to my DB via a GUI as Table Plus and DB Beaver. I also was able to use the knex migrate:make command to create the migration. I followed some online and […]

By Jakub
Published
Categorised as docker, knex.js, node.js, postgresql Tagged , , ,

yarn install takes too much time inside a docker image (GitLab CI)

I am using GitLab CI to dockerize a NextJS application (in an nx workspace). I am using GitLab CI’s dind (Docker in Docker) service to build the image and then push it to a container registry. However this step is taking around 58 minutes for 2 applications (both of them share the same package.json file) […]

Docker Registry HTTP API V2 in Nodejs

I want to pull some images using Docker Registry HTTP API V2, I follow an example from https://github.com/moby/moby/blob/master/contrib/download-frozen-image-v2.sh to implement this feature in Nodejs, but I got 401 error(invalid token) while the token actually set in the headers. const authService=’registry.docker.io’ const authBase=’https://auth.docker.io’ const registryBase=’https://registry-1.docker.io’ const repository= `library/hello-world` const headers = await axios.get(`${authBase}/token?servic=${authService}&scope=repository:${repository}:pull`).then((r) => { const […]

By Chi
Published
Categorised as docker, node.js Tagged ,
1 197

Still Have Questions?


Our dedicated development team is here for you!

We can help you find answers to your question for as low as 5$.

Contact Us
faq