laravel-hhvm-docker

超快速和生产强化:Nginx,HHVM,Composer,PHPUnit - Docker容器。(Super fast and production hardened: Nginx, HHVM, Composer, PHPUnit - Docker container.)

  • Owner: andrewmclagan/nginx-hhvm-docker
  • Platform: Amazon Elastic Compute Cloud (EC2), Docker, Linux, Mac, Windows, Microsoft Azure
  • License:: MIT License
  • Category::
  • Topic:
  • Like:
    0
      Compare:

Github stars Tracking Chart

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 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 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

cd nginx-hhvm-docker

Firstly lets scale the web servers, from your project execute:

docker-compose scale web=3

Now we boot the rest of the services by executing:

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 for more information.

Main metrics

Overview
Name With Ownerandrewmclagan/nginx-hhvm-docker
Primary LanguageDockerfile
Program languagePHP (Language Count: 3)
PlatformAmazon Elastic Compute Cloud (EC2), Docker, Linux, Mac, Windows, Microsoft Azure
License:MIT License
所有者活动
Created At2016-02-18 03:27:43
Pushed At2020-01-13 22:46:29
Last Commit At2020-01-14 09:46:29
Release Count0
用户参与
Stargazers Count86
Watchers Count3
Fork Count25
Commits Count45
Has Issues Enabled
Issues Count10
Issue Open Count0
Pull Requests Count1
Pull Requests Open Count0
Pull Requests Close Count0
项目设置
Has Wiki Enabled
Is Archived
Is Fork
Is Locked
Is Mirror
Is Private