3b84fe084289c8d7b1a4095f3fe0aac8e80298ba
Generate Free SSL Certificates
This docker container generates free SSL certificates using Letsencrypt using Cloudlfare DNS Plugin
How to use
- Copy
.env.example
to.env
and fill it.
CLOUDFLARE_EMAIL is your cloudflare account email
CLOUDFLARE_API_KEY you can get it from (https://dash.cloudflare.com/profile/api-tokens)[Cloudflare profile > API Tokens] CERTBOT_EMAIL this email is for letsencrypt to send you cert expiry notification DOMAINS write domains you want ssl for seperated by commas, wildcard is supported (*.example.com) - Save following content as
compose.yml
services:
certgen:
image: git.shihaam.dev/shihaam/gen-ssl-letsencrypt-cf
hostname: certgen
volumes:
- ./certs:/etc/letsencrypt/archive
env_file: .env
restart: no
# certgen-sar:
# image: git.shihaam.dev/shihaam/gen-ssl-letsencrypt-cf
# hostname: certgen-sar
# volumes:
# - ./certs:/etc/letsencrypt/archive
# env_file: .env_sar
# restart: no
- Run
docker compose up
and wait - Your cert and key will be saved in
certs
folder
Description
Docker container to generate SSL Certificates from Lets Encrypt with DNS validation from Cloudflare
Languages
Shell
80.4%
Dockerfile
19.6%