From 602f6fce0624515342a3c337d2b6b2061935ade7 Mon Sep 17 00:00:00 2001 From: Twist235 <98449070+Twist235@users.noreply.github.com> Date: Mon, 31 Jan 2022 22:12:51 +0100 Subject: [PATCH] SSL documentation contains a small bug #2381 (#2383) --- docs/content/config/security/ssl.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/docs/content/config/security/ssl.md b/docs/content/config/security/ssl.md index 469b044a..52f87346 100644 --- a/docs/content/config/security/ssl.md +++ b/docs/content/config/security/ssl.md @@ -118,6 +118,23 @@ You don't have to do anything else. Enjoy! ``` 2. Add a volume for `docker-mailserver` that maps the _local `certbot/certs/` folder_ to the container path `/etc/letsencrypt/`. + +!!! example + + Add these additions to the `mailserver` service in your [`docker-compose.yml`][github-file-compose]: + + ```yaml + services: + mailserver: + # For the FQDN 'mail.example.com': + hostname: mail + domainname: example.com + environment: + - SSL_TYPE=letsencrypt + volumes: + - ./docker-data/certbot/certs/:/etc/letsencrypt + ``` + 3. The certificate setup is complete, but remember _it will expire_. Consider automating renewals. !!! tip "Renewing Certificates"