wmnnd / nginx-certbot

Boilerplate configuration for nginx and certbot with docker-compose
MIT License
3.16k stars 1.17k forks source link

Unable to create the certificate using init-letsencrypt.sh #83

Open Jakub41 opened 4 years ago

Jakub41 commented 4 years ago

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

arfanliaqat commented 3 years ago

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.