setup https for wordpress with docker

1. install docker-ce

2. install docker-compose


3. setup domain name, and link it to the node you are setting up your web server; install letsencrypt on the webserver


4. install wordpress using docker with the docker-compose.yml below; and do “sudo docker-compose up -d”


5. after start the wordpress docker container,


6. login to the wordpress docker container and do following


7. shutdown the container and put the letsencrypt key and certificate combo to the ~/blog/etc/apache2 folder


8. modify the docker-compose.yml file add the following two lines


9. start docker containers again and turn on the ssl redirect plugin


Leave a Reply

Your email address will not be published. Required fields are marked *