janeczku / rancher-letsencrypt

:cow: Rancher service that obtains and manages free SSL certificates from the Let's Encrypt CA
Apache License 2.0
326 stars 114 forks source link

Use rancher api to restart containers with specific label value when certs are renewed #95

Open kingmatusevich opened 7 years ago

kingmatusevich commented 7 years ago

The use case for this is when one is using the written to shared volume certs, and those certs are renewed, it would be good if after the renewal, the services with a label like "letsencrypt.should.restart=true" are restarted, providing a sure way to have those certs reloaded into memory from the fresh files (for example restarting a nginx container that's running an SSL termination). For my use case I need to use nginx so please don't tell me to use the rancher load balancers.

kivervinicius commented 7 years ago

Any solution for this issue? I need too.