Skip to content

Instantly share code, notes, and snippets.

@yudapc
Last active April 30, 2023 17:22
Show Gist options
  • Save yudapc/83f3ee67fdd29793a7d0f1e91570ee1f to your computer and use it in GitHub Desktop.
Save yudapc/83f3ee67fdd29793a7d0f1e91570ee1f to your computer and use it in GitHub Desktop.
Certbot Generate Certificate Using Docker
docker-compose run certbot certonly -d example.com --manual --preferred-challenges dns --dry-run
services:
certbot:
image: certbot/certbot
volumes:
- ./scripts/certbot/etc-letsencrypt:/etc/letsencrypt
- ./scripts/certbot/var-lib-letsencrypt:/var/lib/letsencrypt
- ./scripts/certbot/var-log-letsencrypt:/var/log/letsencrypt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment