From 3a10866b2ffa5f26a38c6b899280a433f51ae8da Mon Sep 17 00:00:00 2001 From: Theodotos Andreou Date: Sat, 17 Sep 2016 09:05:15 +0300 Subject: [PATCH] Created Setting up SSL on wordpress container (markdown) --- Setting-up-SSL-on-wordpress-container.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Setting-up-SSL-on-wordpress-container.md diff --git a/Setting-up-SSL-on-wordpress-container.md b/Setting-up-SSL-on-wordpress-container.md new file mode 100644 index 0000000..c7b3691 --- /dev/null +++ b/Setting-up-SSL-on-wordpress-container.md @@ -0,0 +1,23 @@ + +### Execute a shell on the container + +``` +docker exec -ti wordpress /bin/bash +``` + +### Add backports repo + +``` +cat >> /etc/apt/sources.list << EOF +deb http://ftp.debian.org/debian jessie-backports main +EOF +``` + +### Install certbot + +``` +apt update +apt-get install python-certbot-apache -t jessie-backports +``` + + certbot run -d ellak.org -d www.ellak.org \ No newline at end of file