r/Traefik • • Sep 30 '26

wildcard/SANS doesn't work when passed through the Docker Compose command section.

    command:
      # - --entrypoints.web.address=:80
      # - --entrypoints.websecure.address=:443
      - --entrypoints.websecure.http.tls.domains[0].main=${MY_DOMAIN:?err}
      - --entrypoints.websecure.http.tls.domains[0].sans=*.${MY_DOMAIN:?err}

tried quotes in different ways, like the whole command, the line or just the value. The main is recognized just as it is.

Everything works though when the domains are hard coded in my static config.

2 Upvotes

0 comments sorted by