wmnnd / nginx-certbot

Boilerplate configuration for nginx and certbot with docker-compose

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to run the container

aasimenator opened this issue · comments

Hi, I am following the steps as mentioned in the README.md file. yet I am having some sort of a path issue. can you help fix this?

server:~/nginx-certbot$ docker-compose up
Starting nginx-certbot_nginx_1   ... done
Starting nginx-certbot_certbot_1 ... done
Attaching to nginx-certbot_certbot_1, nginx-certbot_nginx_1
nginx_1    | 2021/03/05 07:43:16 [emerg] 1#1: open() "/etc/letsencrypt/options-ssl-nginx.conf" failed (2: No such file or directory) in /etc/nginx/conf.d/app.conf:22
nginx_1    | nginx: [emerg] open() "/etc/letsencrypt/options-ssl-nginx.conf" failed (2: No such file or directory) in /etc/nginx/conf.d/app.conf:22
certbot_1  | Saving debug log to /var/log/letsencrypt/letsencrypt.log
certbot_1  |
certbot_1  | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
certbot_1  | No renewals were attempted.
certbot_1  | - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
nginx-certbot_nginx_1 exited with code 1
nginx-certbot_nginx_1 exited with code 1
nginx-certbot_nginx_1 exited with code 1
nginx-certbot_nginx_1 exited with code 1
nginx-certbot_nginx_1 exited with code 1
nginx-certbot_nginx_1 exited with code 1
nginx-certbot_nginx_1 exited with code 1
^CGracefully stopping... (press Ctrl+C again to force)
Stopping nginx-certbot_certbot_1 ... done
Stopping nginx-certbot_nginx_1   ... done

I have the exact same error and can't run this docker-compose. :(
I tried a few different approaches but wasn't able to get it running ...

Is anybody here who could help resolving this issue?!
Greets Daniel

What was the output of the actual init script? From the log above, the ssl file doesn't exist so it was never created. I would make sure it exists and there are no errors after running the init script.