Docker Implementation of Wordpress on HHVM
Wordpress-HHVM-Docker is a docker compose project for WordPress. It supports both HHVM and PHP7. For now it only supports one at the time. In the future will also support HHVM and PHP-FPM as backup when HHVM fails. MySQL is the only supported database for now. This project only supports NGINX and will not support Apache in the future.
- First you have to download Docker Toolbox if you haven't already.
- Download or Clone this project.
- Download WordPress, copy it inside the folder and rename it to
app
. - Navigate with terminal inside docker folder.
docker-compose up -d nginx
- It builds docker containers usingdocker-compose.yml
as its configurationdocker-machine ip default
- To see the IP of the VM machine that this project runs on- Open your browser to that IP and you will see the WordPress installation guide.
- Don't forget to change the WP configuration to
- databaseName -> 'databasename'
- databaseUser -> 'username'
- databasePassword -> 'secret'
Note: Also the host on WP configuration should be the IP of the machine (docker-machine ip default
)
- Make the host dynamic not with hardcoded IP
- Make HHVM as primary and PHP-FPM as fallback (optional option)
- Add more databases
- Separate WordPress folder from upload, plugins, themes folders
- Create a workflow for dev to production deployment