I want to switch to user-defined certificates. Every 3 months I will manually renew certificates with Lego and then I want to feed them to traefik. How to do that?
Will updating certificate files in a volume with certificates suffice? Do I need to restart traefik?
P.S. this only involves update / renew already existing certificates.
this means you are using the file provider to handle the certificates.
if your certificate definitions don't change inside the configuration, you just have to do a touch on the configuration file that contains the certificate definitions. You don't need to restart.
I run traefik in docker swarm. I am testing if traefik will update configuration in case of changes. The changes I do is renaming the certificates files to check if traefik will switch to a default certificate. After the renaming the certificates file on localhost which is mounted via volumes (e.g. from /etc/traefik_certs/<domain>.crt --> /etc/traefik_certs/<domain>.crt.moved) and touching the dynamic config file (./config/master_dyn_cfg.yml) nothing changes. The traefik still serves the (non-default) certificates.
[more context]
In fact only docker stack rm + docker stack deploy make traefik see the changes and start serving the default certificate (since the certificate path were deliberately changed to make dynamic config wrong).
[more context]
The files are mounted correctly via volumes and I can see all the changes inside the containers (both certificates renaming and dynamic config file timestamps are updated)