Build blog with docker/wordPress with https

1.install docker

1.1.update yum

sudo tee /etc/yum.repos.d/docker.repo <<-'EOF'
name=Docker Repository baseurl= enabled=1 gpgcheck=1 gpgkey= EOF 

1.2.install docker

sudo yum update -y
sudo yum install -y docker-engine
sudo curl -L`uname -s`-`uname -m` -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
sudo ln -s /usr/local/bin/docker-compose /usr/bin/docker-compose

1.3.start docker

sudo systemctl enable docker
sudo systemctl start docker

2.https/nginx configuration

2.1.replace certificate

replace domain.key/chained.pem with your certificate, you could apply free certificate on Let’s Encrypt

2.2.nginx configuration

replace with your domain in nginx.conf


3.1.wordpress initialize

login, setup wordpress

3.2.install https plugin

install Really Simple SSL plugin, setup whole site covered by https