GithubHelp home page GithubHelp logo

blog's Introduction

About Laravel Blog (v0.1)

Laravel Blog is dockerized laravel application boilerplate intended to demonstrate best practices for deploying laravel application containers to production. The project contains Dockerfiles and build scripts for building nginx and php-fpm production images from a Laravel project using multi stage docker builds. It also contains a docker-compose file to run the built images as containers to run Laravel in production.

This is still very much a work in progress.

  • [Cloning and setting up the repo]

  • clone the repo

  • chmod +x docker-build.sh

  • chmod +x docker-build-app.sh

  • chmod +x docker-build-web.sh

  • cp .env.example .env.prod

  • in .env.prod set these keys:

  • APP_ENV=production

  • APP_DEBUG=false

  • [building and running the images]

  • ./docker-build.sh

  • docker-compose up -d

  • [stoping the containers]

  • docker-compose down --volumes

  • [The following resources were used in bulding this boilerplate]

http://geekyplatypus.com/dockerise-your-php-application-with-nginx-and-php7-fpm/

https://github.com/joelshepherd/laravel-docker-template/blob/master/.docker/build/Dockerfile

https://medium.com/@shakyShane/laravel-docker-part-1-setup-for-development-e3daaefaf3c

https://medium.com/@shakyShane/laravel-docker-part-2-preparing-for-production-9c6a024e9797

https://medium.com/@othillo/adding-composer-to-php-docker-images-using-multi-stage-builds-2a10967ae6c1

https://chrisguitarguy.com/2017/12/16/multi-stage-docker-php/

https://blog.hasura.io/an-exhaustive-guide-to-writing-dockerfiles-for-node-js-web-apps-bbee6bd2f3c4

https://medium.com/@shakyShane/lets-talk-about-docker-artifacts-27454560384f

License

This is open-sourced software licensed under the MIT license.

blog's People

Contributors

aregsar avatar

Watchers

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