nginx-certbot icon indicating copy to clipboard operation
nginx-certbot copied to clipboard

Unable to create the certificate using init-letsencrypt.sh

Open Jakub41 opened this issue 5 years ago • 1 comments

Hello, In my project, I'm trying to use this approach to have Nginx running but I'm having issues running the init-letsencrypt.sh in the screenshot the issue Screenshot 2020-08-01 at 14 01 50

I did the modification in my project here WeTaxiApi

Could you please help me to understand what I have mistaken as I'm new to use Docker with Nginx and I would like to learn the good approach, please :)

Jakub41 avatar Aug 01 '20 12:08 Jakub41

The reason in my case was that i had two different docker-compse.yml files (one for prod and for dev). The file which i was using was docker-compose-prod.yml which is not picked up by default, either keep your production setup in docker-compose.yml so it is picked up by init-script or add -f docker-compose-prod.yml argument to each docker-compose cmd inside init script.

arfanliaqat avatar May 24 '21 13:05 arfanliaqat