Skip to content

Instantly share code, notes, and snippets.

@misterorion
Last active January 28, 2019 04:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save misterorion/93e0cc775148c72a6108b767822db4be to your computer and use it in GitHub Desktop.
Save misterorion/93e0cc775148c72a6108b767822db4be to your computer and use it in GitHub Desktop.
certbot script for dockerized wordpress add --dry-run for testing
#!/bin/bash
docker run -it --rm \
-v certs:/etc/letsencrypt \
-v certs-data:/data/letsencrypt \
-v /var/log/letsencrypt:/var/log/letsencrypt \
certbot/certbot certonly \
--webroot --register-unsafely-without-email --agree-tos \
--webroot-path=/data/letsencrypt \
-d origin.domain.com -d www.domain.com
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment