From 4424495f63dbc4c6dddd321b6e5ced862301c4af Mon Sep 17 00:00:00 2001 From: Georg Lauterbach <44545919+aendeavor@users.noreply.github.com> Date: Sat, 26 Sep 2020 14:52:36 +0200 Subject: [PATCH] Traefik2's wildcard certificates now work with `:stable` --- docs/content/config/security/ssl.md | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/docs/content/config/security/ssl.md b/docs/content/config/security/ssl.md index 0ec0512f..a65c0592 100644 --- a/docs/content/config/security/ssl.md +++ b/docs/content/config/security/ssl.md @@ -248,7 +248,8 @@ networks: ``` The second part of the setup is the actual mail container. So, in another folder, create another docker-compose.yml with the following content (Removed all ENV variables for this example): -``` + +``` YAML version: '2' services: mail: @@ -289,6 +290,7 @@ networks: name: nginx-proxy ``` + The mail container needs to have the letsencrypt certificate folder mounted as a volume. No further changes are needed. The second container is a dummy-sidecar we need, because the mail-container do not expose any web-ports. Set your ENV variables as you need. (VIRTUAL_HOST and LETSENCRYPT_HOST are mandandory, see documentation) @@ -317,6 +319,7 @@ Traefik can request certificates for domains through the ACME protocol (see [Tra ##### Traefik v2 (For Traefik v1 see [next section](#traefik-v1)) + Traefik's V2 storage format is natively supported if the `acme.json` store is mounted into the container at `/etc/letsencrypt/acme.json`. The file is also monitored for changes and will trigger a reload of the mail services. Lookup of the certificate domain happens in the following order: 1. $SSL_DOMAIN @@ -325,11 +328,11 @@ Traefik's V2 storage format is natively supported if the `acme.json` store is mo This allows for support of wild card certificates: `"SSL_DOMAIN=*.example.com"`. Here is an example setup for [docker-compose](https://docs.docker.com/compose/): -```yaml +``` YAML version: '3.8' services: mail: - image: tvial/docker-mailserver:latest + image: tvial/docker-mailserver:stable hostname: mail domainname: example.com volumes: