In the previous post Getting started with Docker Compose and WordPress we learned how to set up a WordPress website with Docker Compose. In this post, we’re going to populate that site with our content, and figure out how to deploy WordPress using Docker Compose. For the deployment target, we are going to use an AWS EC2 instance running Docker, You can learn how to configure that instance here.
In the last post we set up a docker environment on an EC2 instance, but we didn’t really explain what docker is all about or why we were doing this. In this one, we are going to dive deeper into Docker and Docker Compose and we’ll set up a local environment that works nearly identically to the one we’ve set up in AWS. With our environment set up, we will build a website with WordPress to deploy to the EC2 instance.