Skip to content
This repository has been archived by the owner on Jul 8, 2018. It is now read-only.

thegazelle-ad/gazelle-wordpress-core

Repository files navigation

Docker Container running Wordpress + HHVM + Nginx with PHP-FPM fallback

This does not come with mysql installation.

##How to use

Make sure to pull the submodules first

git submodule init
git submodule update

First build the container

./build.sh

To start the server just use

PORT=80 DB_HOST="my_wp_host" DB_NAME=wp_test DB_USER=wp_user DB_PASSWORD=wp_pass URL="http://localhost/" ./start.sh 

To boot this into an interactive shell you can use

PORT=80 DB_HOST="my_wp_host" DB_NAME=wp_test DB_USER=wp_user DB_PASSWORD=wp_pass URL="http://localhost/" ./interactive.sh

As this container does not contain mysql, you need to set one up separately. You can use a hosted solution or the following docker image works also:

https://hub.docker.com/_/mysql/

If using the local container there are good instructions for the mysql container in the above link. To get the image you simply pull it.

docker pull mysql

You should then remember to create a data container and connect it to the mysql container when you run it using --volumes-from. To link the Gazelle container to the database you use the optional DB_LINK parameter. Pass the name of the mysql container in this parameter and the DB_HOST parameter.

PORT=80 DB_LINK="mysql_container_name" DB_HOST="mysql_container_name" DB_NAME=wp_test DB_USER=wp_user DB_PASSWORD=wp_pass URL="http://localhost/" ./interactive.sh 

It will always connect on port 3306, and its url in the container will be the same as the DB container's name.

##References

Based on: https://github.com/philipz/docker-nginx-hhvm-wordpress

  1. https://github.com/CenturyLinkLabs/ctlc-docker-wordpress
  2. https://github.com/nikolaplejic/docker.hhvm
  3. https://github.com/eugeneware/docker-wordpress-nginx
  4. https://github.com/tutumcloud/tutum-docker-wordpress-nosql
  5. http://www.flockport.com/deploy-wordpress-with-hhvm-and-php-fpm-as-fallback/
  6. https://rtcamp.com/tutorials/php/hhvm-with-fpm-fallback/
  7. https://bjornjohansen.no/hhvm-with-fallback-to-php
  8. https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04:w

About

Docker container for Gazelle Wordpress Core

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published