I have a node JS express app running on Linux container. The node JS app inside the Linux container is making API calls to a URL hosted in the host machine (A URL hosted in Windows IIS).
But I'm getting the following error while making API call from the container:
Error: connect ECONNREFUSED 127.0.0.1:443
I have configured the NodeJS app with Service_BaseURL configured in my windows host file. I think the container is not able to resolve the Service_BaseURL. Below is my dockerfile:
FROM node:10
WORKDIR /usr/src/app
COPY package*.json ./
RUN npm install
COPY . .
ENV HOSTNAME localhost
ENV PORT 8080
ENV LOGGING_PATH /var/lib/docker/containers/logs
ENV Service_BaseURL https://local-service.org
EXPOSE 8080
CMD [ "node", "server.js" ]
Any help greatly appreciated.