I have a simple react app (for fun not work or school). I use EC2 to run react, express, mongo using docker. I have been trying to add SSL certs and having an awful time. I think certbot is the easiest but I have not had any luck.
Latest issue is I created the certbot certs manually on my local machine using dns challenge. So I have my "/etc/letsencrypt/live". folder with my pem files.
in my docker file I want to copy those certs to my /etc/ssl directory to use in my docker image and I get no such file exists every time. I think its because they are just sim links?
COPY /etc/letsencrypt/live/yyy.com/fullchain.pem /etc/letsencrypt
That file is in that folder but I do not know how to use it in my docker image because I cannot copy it.
My assumption is I can build this docker image locally with certs and push it to my ec2 instance and have it all work.
any help would be great or links to walk throughs? I could not find any good ones
Source: Docker Questions