my certificate *.cer and *.key are both in "ssl" directory witch is in the same directory as the docker-compose.yml file.
I get this error with command docker compose logs:
"level=error msg="Unable to add a certificate to the entryPoint "https" : unable to generate TLS certificate : tls: failed to find any PEM data in certificate input"
I'm sorry I don't understand what you mean exactly.
The file I'm showing is used with traefik v1.7. and is working fine on another server.
Where should docker appear if not in entrypoints ?
" You need to load custom TLS certs with the tls section in a dynamic config file " ??? ==> What's the tls section. Is it a separate/standalone section ?
" Enable TLS on entrypoint /router using tls: {} (yaml) or .tls=true (command/label). " => how exactly. Is this two distinct structure ? One if file is yaml and the other is file is toml ?
" Load the dynamic config file with providers.file in static config " => What's a providers.file ? .file (could be .yaml or .toml ? )
I think It will be better If you could write a simple example with everything you've mentioned.