Skip to main content

All Questions

Tagged with
1 vote
0 answers
54 views

Next.js docker container hangs during compilation step

I have a multi container development environment that I spin up using docker compose. The frontend (Next.js) is defined in a Dockerfile as such: FROM node:20-alpine WORKDIR /app COPY package*.json ./...
Brian Barry's user avatar
0 votes
1 answer
39 views

turborepo NEXT_PUBLIC build variables not correctly used in next.js when passing over docker

I somehow cant access my build variables on my next.js app when i pass them in the docker compose file. When i print the process.env in the docker environment It is correctly configured and set but ...
tuke307's user avatar
  • 440
-1 votes
1 answer
19 views

Docker Error SequelizeHostNotFoundError getaddrinfo ENOTFOUND db

I am experiencing this error after deploying my node.js application on docker, how do i resolve it? classcube_enterprise_api | 2025-03-27 14:57:45:5745 error: getaddrinfo ENOTFOUND db: ...
charles joseph owuala's user avatar
1 vote
0 answers
31 views

Node_modules are not installing in my directory after running "RUN yarn" in my Docker-File

I am currently using Docker container to run my Backend code. But node modules are not installed even my Docker-file has "RUN yarn" command. This is my Docker-File FROM node:18-alpine3.18 ...
Vishnupriya V's user avatar
0 votes
1 answer
75 views

Payload CMS Docker build error: failed to solve: archive/tar: unknown file mode ?rwxr-xr-x

I am trying to deploy my Payload CMS app to Azure App Service as a container using Docker but I am facing issues with docker build command. I am trying to deploy the basic website template with no ...
Jason Susanto's user avatar
1 vote
1 answer
220 views

How to Set NEXT_PUBLIC_* Environment Variables After Next.js Build in Docker?

I'm trying to implement a "build once, deploy everywhere" approach for my Next.js application. I've managed to configure environment variables for server-side components, but I'm struggling ...
Fabio Piunti's user avatar
  • 1,094
-3 votes
1 answer
57 views

Error Handling Environment Variables Natively in Node.jsv22 Within a Container

I am trying to work with .env files natively, as starting from Node.jsv20 (I am currently using version v22.14.0), it is no longer necessary to install libraries like dotenv to manage environment ...
Jorge Leonardo's user avatar
-1 votes
1 answer
47 views

NGINX reverse proxy not forwarding requests to backend in Docker Compose [closed]

Getting frustrated of nginx not connecting to the backend when i visit http://localhost/ this what i see Welcome to nginx! If you see this page, the nginx web server is successfully installed and ...
Ukpa Uchechi's user avatar
0 votes
1 answer
42 views

Mongoose replica set with docker

I spend whole day trying to figure out how can I convert my standalone mongod to Replica Set I and have failed. This is how I'm doing it without replication. docker-compose.yaml volumes: mongo....
Majkon's user avatar
  • 71
0 votes
0 answers
97 views

Stop tailwind from using all my memory and cpu

I am using Tailwind CSS in my Project. I run it inside a Docker Container with docker compose: frontend: image: node:20-alpine working_dir: /frontend volumes: - ./frontend:/...
Allleex's user avatar
  • 340
-3 votes
1 answer
57 views

'docker compose up' with NextJS app results in 'The npm ci command can only install with an existing package-lock.json'

Problem Statement: Doing a 'sudo docker compose -f compose/docker-compose.yaml up' on a new VM for a NextJs application docker container, results in: > [... builder 4/6] RUN npm ci: ...
Bryan Carty's user avatar
1 vote
0 answers
33 views

MongoTimeoutError: Server selection timed out after 10000 ms - disconnected suddenly

I use docker-compose on aws ec2 to build node.js express to connect to mongodb atlas. I have created a connection whitelist and can connect smoothly. But, the db connection will be disconnected ...
Finn's user avatar
  • 1,459
0 votes
1 answer
54 views

Nestjs can't find build source after creating workspace

I renamed my NestJS project directory to server and moved the docker-compose, tsconfig.json, and package.json files outside this folder. Inside the main directory (named after the project), I defined ...
DolDurma's user avatar
  • 17.5k
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
11 views

Why does docker-compose volume have 2-way access [duplicate]

I'm asking for someone to explain how Docker and Compose handle volumes differently. I'm setting up a dev env where I can run a container, serve a node app with --watch flag, edit the code locally and ...
tonsteri's user avatar
  • 857

15 30 50 per page
1
2 3 4 5
113