-
Notifications
You must be signed in to change notification settings - Fork 0
Setting up SSL on the WordPress container
Dimitrios Desyllas edited this page Dec 8, 2016
·
5 revisions
Is recomended to use nginx as reverse proxy with the method mentioned on: https://github.com/ellakcy/Documentation/wiki/Setting-up-SSL-on-the-WordPress-container instead of this one mentioned below.
docker exec -ti wordpress /bin/bash
NOTE: avoid typing exit to exit the container. Better use ctrl+p+q.
echo "deb http://ftp.debian.org/debian jessie-backports main" >> /etc/apt/sources.list
apt update
apt-get install python-certbot-apache -t jessie-backports
docker commit wordpress ellak-cy/wordpress-with-certbot
docker stop wordpress
docker run -d --name wordpress-certbot --link mysql:mysql -p 80:80 -p 443:443 ellak-cy/wordpress-with-certbot
050ed584d54045595fa64cfc5b2be804e5a9a622f18f7e79411fb21d69a4233d
certbot --text -d ellak.org -d www.ellak.org --email "admins@ellak.org" ------------------------------------------------------------------------------- Please read the Terms of Service at https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf. You must agree in order to register with the ACME server at https://acme-v01.api.letsencrypt.org/directory ------------------------------------------------------------------------------- (A)gree/(C)ancel: A We were unable to find a vhost with a ServerName or Address of www.ellak.org. Which virtual host would you like to choose? (note: conf files with multiple vhosts are not yet supported) ------------------------------------------------------------------------------- 1: default-ssl.conf | | HTTPS | 2: 000-default.conf | | | Enabled 3: 000-default-le-ssl.conf | ellak.org | HTTPS | Enabled ------------------------------------------------------------------------------- Select the appropriate number [1-3] then [enter] (press 'c' to cancel): 3 Please choose whether HTTPS access is required or optional. ------------------------------------------------------------------------------- 1: Easy - Allow both HTTP and HTTPS access to these sites 2: Secure - Make all requests redirect to secure HTTPS access ------------------------------------------------------------------------------- Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2