Coder Social home page Coder Social logo

startupengine / heroku-laravel-docker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from akira-miyake/heroku-laravel-docker

0.0 1.0 0.0 24 KB

Super fast and production hardened: Nginx, HHVM, Composer, PHPUnit - Docker container.

License: MIT License

Shell 42.46% PHP 57.54%

heroku-laravel-docker's Introduction

heroku-laravel-docker

Heroku上で動作するLaravel + nginx + hhvmのプロジェクトを、ローカルで開発するためのDockerの設定ファイル群。

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.

heroku-laravel-docker's People

Contributors

andrewmclagan avatar medaqueno avatar akira-miyake avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.