Closed naioja closed 1 year ago
This was very useful and I appreciate the example with wildcards. Below is a complimentary dockerfile in case it helps anyone; I find docker compose easier to read.
version: '3.7'
services:
certbot-azure-dns-1:
build:
context: .
dockerfile: Dockerfile
container_name: certbot-azure-dns-1
command:
- certbot
- certonly
- "--email=example@outlook.com"
- "--authenticator=dns-azure"
- "--preferred-challenges=dns"
- "--agree-tos"
- "--noninteractive"
- "--dns-azure-config=/secret/azure.ini"
- "--domains=example.org"
- "--domains=*.example.org"
volumes:
- "./letsencrypt:/etc/letsencrypt"
- "./secret:/secret:ro"
Hey, sorry, didn't have notifications on for this repo for a while. @naioja please PR and update the readme with a section relating to this :smile:
@terrycain please have a look at https://github.com/terrycain/certbot-dns-azure/pull/31
Hello,
For anyone wanting to use this plugin in a container I have the following example:
The docker build command would simply be:
As an example the newly created container can be used as follows (a bit brave to mount directly the host's /etc/letsencrypt directory):
And the contents of the azuredns.ini is as per the service principal example with 400 permission.
Please let me know if code snippet above this is adequate to be included in a subsequent PR.