This example describes the process needed to set up a wordpress blog using docker locally.
If you only want to deploy your wordpress blog locally, you need a system installed with docker and docker-compose. Here is a link to help you do that: https://docs.docker.com/engine/installation/
Clone this git repository, move into the directory with the docker-compose.yml
file and execute the following command:
docker-compose up -d
To shutdown the containers use the following command:
docker-compose down
This wordpress example has already been setup with an admin user.
- username: admin
- password: admin
- email: [email protected]
If a you want to have a clean install just delete the content of the db_data directory.
There are two ways to scale this example application:
- By using a tool like Docker Swarm or Kubernetes. Those applications allow you to automate deployment, scaling, and management of containerized applications.
- By going into the cloud and use a provider like AWS. AWS has a service called ECS, which allows the deployment of docker containers and has the scaling tool like the above mentioned tools ready to use.
With both scenarios you need to consider different mechanisms to apply the scaling. Specifically, horizontal scaling for the stateless container hosting the wordpress part and sequential scaling for the db container.