Skip to content

MoisesTapia/terra-wordpress

Repository files navigation

Terra-Wordpress

terraform docker linux issues starts License fork

Deploy a Wordpress with MYSQL with docker and terraform

Info

No. containers: 2
Terraform version: v0.12.24
Docker version: 19.03.13, build 4484c46d9d

How to deploy

git clone https://github.com/MoisesTapia/terra-wordpress
cd terra-wordpress
terraform plan -out terraform.tfplan
terraform apply terraform.tfplan

Look all outputs

terraform output

How to destroy

terraform destroy --auto-approve

Change the path of your docker volumes

  volumes {
      container_path = "/var/lib/mysql" --------
      host_path = "/home/moisestapia/EMS/Terraform/terra-cert-docker/terra-wordpress/database"
  }

where:
container_path = The path in the container where the volume will be mounted.
host_path = The path on the host where the volume is coming from.

Look the file

Check docker container

docker container ls

Config WordPress

To configure wordpress we need follow the steps what help installer show us.

  • create a file wp-config.php.
  • add the content that the instales show us.
  • restart the instalation.