Skip to content

munju/exampleBlog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Wordpress Docker Example

This example describes the process needed to set up a wordpress blog using docker locally.

Running it 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.

If a you want to have a clean install just delete the content of the db_data directory.

Scaling it

There are two ways to scale this example application:

  1. By using a tool like Docker Swarm or Kubernetes. Those applications allow you to automate deployment, scaling, and management of containerized applications.
  2. 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.

About

Wordpress blog created using docker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published