How to set up an Letsencrpty SSL inside an NodeJS Docker image I build?

I already build a NodeJS image that works in HTTP, and now I just want to add an SSL to my application?

Should I use Nginx, if so how can I set it up to work with my Docker image?

My Dockerfile

FROM node


COPY package.json .

RUN npm install --production

RUN apt-get install imagemagick libmagickcore-dev libmagickwand-dev
RUN apt-get clean

COPY . .

EXPOSE 8080 8443

CMD [ "npm", "start" ]

Port maping

Container Host
8080 80
8443 443

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.