Docker compose with Treafik and portainer + redirect and LetsEnCrypt

Ok found the bug.

The problem was the "staging" in the URL:

Here is the line

      - "--certificatesresolvers.myresolver.acme.caserver=https://acme-staging-v02.api.letsencrypt.org/directory"

must be changed like this

      - "--certificatesresolvers.myresolver.acme.caserver=https://acme-v02.api.letsencrypt.org/directory"