mattermost / docker

Install Mattermost server via Docker
Apache License 2.0
338 stars 209 forks source link

Certbot: support non-interactive setups #112

Closed francisco-core closed 1 year ago

francisco-core commented 1 year ago

Certbot (issue-certificate.sh) fails with an interactive prompt asking for an email address:

$ docker run -it --rm --name certbot -p 80:80 \
    -v "/opt/mattermost/volumes/certs/etc/letsencrypt:/etc/letsencrypt"  \
    -v "/opt/mattermost/volumes/certs/lib/letsencrypt:/var/lib/letsencrypt"  \
    certbot/certbot certonly --standalone -d "$DOMAIN"

Saving debug log to /var/log/letsencrypt/letsencrypt.log
Enter email address (used for urgent renewal and security notices)

To fix this, the user should have a parameter to enter the email and the script should run with the --non-interactive flag.

francisco-core commented 1 year ago

My bad. It's OK for this to be interactive.