Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/andrewmclagan/nginx-hhvm-docker
Super fast and production hardened: Nginx, HHVM, Composer, PHPUnit - Docker container.
https://github.com/andrewmclagan/nginx-hhvm-docker
Last synced: 23 days ago
JSON representation
Super fast and production hardened: Nginx, HHVM, Composer, PHPUnit - Docker container.
- Host: GitHub
- URL: https://github.com/andrewmclagan/nginx-hhvm-docker
- Owner: andrewmclagan
- License: mit
- Created: 2016-02-18T03:27:43.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2020-01-13T22:46:29.000Z (almost 5 years ago)
- Last Synced: 2024-08-01T06:20:55.419Z (3 months ago)
- Language: Dockerfile
- Homepage:
- Size: 26.4 KB
- Stars: 88
- Watchers: 5
- Forks: 25
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Deprecated
PLease use: https://github.com/beam-australia/laravel-docker
No longer maintained.
# laravel-hhvm-docker
A super fast, production hardened HHVM / PHP-7 `Dockerfile` served by Nginx forward proxy. See [link](http://goo.gl/Adqu0i) for the why. Perfect for horizontally distributed `Laravel` applications run within a Docker container cluster.
**Note** due to issues with Boot2Docker and VirtualBox response times on a local environment (with these tools) is slightly degraded with local volumes enabled.
**Note** Installs [hirak/prestissimo](https://github.com/hirak/prestissimo) composer parallel install plugin. If you have issues with composer installs remove this plugin.
## Stack
* **HHVM** (Facebooks PHP-7 runtime)
* **Nginx** (FastCGI web-server)
* **Composer** (PHP package manager)
* **PHPUnit** (PHP unit testing)## Usage
Preferably used in a horizontally scaled Docker container environment (such as docker-compose) run alongside other services such as Redis and MariaDB.
CD into your cloned repository
````Bash
cd nginx-hhvm-docker
````Firstly lets scale the `web` servers, from your project execute:
````Bash
docker-compose scale web=3
````Now we boot the rest of the services by executing:
````Bash
docker-compose up
````Voila! simply visit `nginx-hhvm.app` and you have a fully load-balanced, horizintally scaled application inferstructure!
**NOTE:** Make sure you add `nginx-hhvm.app` to your hosts file if developing locally with the IP address of the `docker-machine` instance.
## Configuration
We reccomend you create your own Dockerfile build, based upon this image.
Image is based upon the official nginx docker repository, see [git repo](https://github.com/nginxinc/docker-nginx) for more information.