nginx-certbot
nginx-certbot copied to clipboard
Unable to create the certificate using init-letsencrypt.sh
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

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 :)
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.