All Questions
82 questions
-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 ...
0
votes
1
answer
716
views
Health probe with errors in Azure Container App
I have an application running nodejs and redis services. The exposed port is only 3000. This application is an api that queries and stores data in a postgresql.
The services run in a single container.
...
0
votes
0
answers
342
views
Deploying Nodejs Docker container with Nginx
I recently finished building an application and would like to deploy it on a PaaS platform such as render. I read that using nginx as reverse proxy is good for production and I followed a tutorial to ...
1
vote
1
answer
264
views
I can't run TypeScript inside "node:bookworm" docker image
When I tried to run TypeScript server inside a container from "node:21.1.0-bookworm" it didn't work and gave me this error :
TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension &...
5
votes
3
answers
6k
views
npm install takes forever when running docker-compose
I am working on a Next.js project with a PostgreSQL database running in a Docker container. My project's setup uses Docker Compose. However, when I run docker-compose up, it takes forever to execute ...
0
votes
1
answer
32
views
MongoError: failed to connect to server using docker-compose
Here's my docker-compose.yaml:
version: '3'
services:
app:
image: chaseloyd/portfolio-site:latest
ports:
- "3000:3000"
mongo2:
image: mongo
container_name: mongo2
...
0
votes
1
answer
618
views
Wait for docker compose command in Node.js
I want to start a docker compose file using Javascript on Node.js for integration tests. I'm able to execute the docker command in a child process using Nodes exec or execSync calls like this:
import {...
0
votes
1
answer
198
views
Error: Connection lost: The server closed the connection in node js
I have setup the Node.js v19.3.0 with MySQL 5.7.41 using docker 20.10.14, build a224086
I have written the connection code in the script.js file but when I hit npm start then after 8-10 seconds it ...
-1
votes
1
answer
331
views
Why is NPM install with packagename working in Docker but 'NPM install" not working?
I am building a docker file in a node.js application. If I install packages this way, it works:
RUN npm install express
RUN npm install axios
RUN npm install cloudinary
These packages will install. I ...
3
votes
1
answer
1k
views
No such file or directory @ rb_sysopen - /box/main.c - Internal Error
I am currently working on a project that needs judge0 API.
Firstly, I used it with rapid-api and all run well.
I recently decided to move to a self-hosted with docker-compose.yml file. My container ...
0
votes
0
answers
85
views
Node app not connecting to MySQL database in docker, using links
Trying to connect my node app to mysql database. I already have an express api set up that manages to connect but for some reason node doesn't work. Using "links" in the docker compose file, ...
3
votes
4
answers
5k
views
CORS error when accessing NodeJS express api in Docker container
I have NodeJS api and NextJS application in Separate docker containers when I'm in host machine its working fine, but when I'm running inside docker containers its giving CORS error.
My express config ...
1
vote
0
answers
691
views
Failed to build the docker image - npm ERR! [email protected] install
Now I've some issues while building the docker image. It worked before but now it stopped to work.
Here is my DockerFile.
# syntax=docker/dockerfile:1
FROM node:14.17.5
ENV NODE_ENV=development
#ENV ...
0
votes
1
answer
1k
views
javascript client can't in docker-compose service can't fetch from node.js api
I have a docker-compose.yml (test setup) file that contains 3 services: a nodes api (api), a html php frontend (clientphp) and a html/javascript frontend which should replace the php frontend but I ...
-2
votes
1
answer
303
views
How to send signal to docker compose to stop?
I need to stop docker or docker-compose by stoping my nodejs app with Ctrl+C,
it means docker is up and down by nodejs .
i add start script to up docker-compose before nodejs but i can't figure that ...