Skip to content

Instantly share code, notes, and snippets.

@torounit
Created February 7, 2016 00:34
Show Gist options
  • Save torounit/2dadbcf16c1fd8ad158f to your computer and use it in GitHub Desktop.
Save torounit/2dadbcf16c1fd8ad158f to your computer and use it in GitHub Desktop.
#!/bin/sh
service monit stop
service nginx stop
docker run -it --rm -p 443:443 --name letsencrypt -v "/etc/letsencrypt:/etc/letsencrypt" -v "/var/lib/letsencrypt:/var/lib/letsencrypt" quay.io/letsencrypt/letsencrypt:latest certonly -d exmample.com -m [email protected] --agree-tos --standalone --renew-by-default
service nginx start
service monit start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment