Docker Container running Wordpress + HHVM + Nginx with PHP-FPM fallback
##How to use
First make sure wordpress is loaded.
git submodule init && git submodule update
Then 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 ./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 ./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://github.com/tutumcloud/tutum-docker-mysql
##Notes
- PHP 5.6
- Does not come with mysql.
- Environment variables are enabled in PHP-FPM (to be consistent with HHVM)
##References
Based on: https://github.com/philipz/docker-nginx-hhvm-wordpress
- https://github.com/CenturyLinkLabs/ctlc-docker-wordpress
- https://github.com/nikolaplejic/docker.hhvm
- https://github.com/eugeneware/docker-wordpress-nginx
- https://github.com/tutumcloud/tutum-docker-wordpress-nosql
- http://www.flockport.com/deploy-wordpress-with-hhvm-and-php-fpm-as-fallback/
- https://rtcamp.com/tutorials/php/hhvm-with-fpm-fallback/
- https://bjornjohansen.no/hhvm-with-fallback-to-php
- https://www.digitalocean.com/community/tutorials/how-to-install-linux-nginx-mysql-php-lemp-stack-on-ubuntu-12-04:w