Minor deployment-with-docker.rst improvements

This commit is contained in:
Audrey Roy Greenfeld 2016-06-08 12:51:55 -07:00
parent ae5be42ff4
commit 56efcaa475

View File

@ -1,9 +1,10 @@
Deployment with Docker Deployment with Docker
================================================= =======================
.. index:: Docker, deployment .. index:: Docker, deployment
Prerequisites: Prerequisites
-------------
* Docker (at least 1.10) * Docker (at least 1.10)
* Docker Compose (at least 1.6) * Docker Compose (at least 1.6)
@ -91,9 +92,9 @@ If you would like to set up autorenewal of your certificates, the following comm
docker-compose run certbot bash -c "sleep 6 && certbot certonly --standalone -d {{ cookiecutter.domain_name }} --text --agree-tos --email {{ cookiecutter.email }} --server https://acme-v01.api.letsencrypt.org/directory --rsa-key-size 4096 --verbose --keep-until-expiring --standalone-supported-challenges http-01" docker-compose run certbot bash -c "sleep 6 && certbot certonly --standalone -d {{ cookiecutter.domain_name }} --text --agree-tos --email {{ cookiecutter.email }} --server https://acme-v01.api.letsencrypt.org/directory --rsa-key-size 4096 --verbose --keep-until-expiring --standalone-supported-challenges http-01"
docker exec pearl_nginx_1 nginx -s reload docker exec pearl_nginx_1 nginx -s reload
And then set a cronjob by running `crontab -e` and placing in it (period can be adjusted as desired): And then set a cronjob by running `crontab -e` and placing in it (period can be adjusted as desired)::
0 4 * * 1 /path/to/bashscript/renew_certbot.sh 0 4 * * 1 /path/to/bashscript/renew_certbot.sh
Run your app with docker-compose Run your app with docker-compose
-------------------------------- --------------------------------
@ -156,7 +157,6 @@ If you are using `supervisor`, you can use this file as a starting point::
autorestart=true autorestart=true
priority=10 priority=10
Place it in `/etc/supervisor/conf.d/{{cookiecutter.project_slug}}.conf` and run:: Place it in `/etc/supervisor/conf.d/{{cookiecutter.project_slug}}.conf` and run::
supervisorctl reread supervisorctl reread