Sign inSign up

ibenitez/wordpress

By ibenitez

•Updated about 9 years ago

Help you publish the Bedrock WordPress boilerplate in production on Docker Swarm.

Image
0

897

ibenitez/wordpress repository overview

⁠WordPress in Docker

You can use this image for getting a empty WordPress setup production ready in less of 2 minutes!

WordPress in Docker uses Bedrock as modern boilerplate of WordPress. Bedrock⁠ is a modern WordPress stack that helps you get started with the best development tools and project structure.

⁠Requirements

⁠Instructions

In the first time, you have to create your Docker Swarm cluster in your favorite cluster:

In the docker/prod/ folder you can find a valid template for going up the WordPress services on your Docker Swarm.

If you just have provided the cluster with docker-machine (as DigitalOcean tutorial) then type from the project root path:

$ mkdir wordpress-in-docker && cd wordpress-in-docker
$ git clone https://github.com/ismael-benitez/wordpress-in-docker.git .
$ ant -buildfile docker/prod -Durl=ismaelbenitez.es -Did=ismaelbenitez_es up

Where -buildfile is the folder containing the Docker Swarm templates, -Durl is the domain assigned for you to the WordPress (you should have set up the DNS previously) and -Did is the name of the stack⁠ what you prefer on your Docker Swarm.

Finally you can check the stack status with docker stack ls, the services status with docker service ls or to navigate to the given url and to find the initial WordPress setup.

⁠Documentation

Bedrock documentation is available at https://roots.io/bedrock/docs/⁠.

Docker Swarm documentation is available at https://docs.docker.com/engine/swarm/swarm-tutorial/⁠.

Tag summary

Content type

Image

Digest

Size

167 MB

Last updated

about 9 years ago

docker pull ibenitez/wordpress