Giter VIP home page Giter VIP logo

trydirect / laravel-formula Goto Github PK

View Code? Open in Web Editor NEW
10.0 3.0 9.0 35.99 MB

Easily setup Laravel development environment. Laravel stack will include: Latest PHP7 docker image, NGINX (tuned with letsencrypt and self signed certificate support), PostregSQL, Redis cache, RabbitMQ, ELK (Logs), Vault (Credentials management)

PHP 86.18% Dockerfile 3.50% HCL 0.28% Shell 3.47% Python 3.35% Blade 3.22%
laravel elk-stack docker-compose-laravel-php-mysql docker-compose docker-compose-te docker template dockerfile docker-compose-development dockerfiles

laravel-formula's Introduction

Build Status Docker Stars Docker Pulls Docker Automated Docker Build Gitter chat

Laravel development template.

Laravel development template - project generator/development environment. Can be used by Laravel developers to start quickly on building web apps, restful api's etc. This stack allows you to setup development environment with a single docker-compose command

Stack includes

  • PHP 7.4-fpm docker image,
  • Laravel 7.6.0
  • Xdebug 2.9.6
  • NGINX latest (tuned with letsencrypt and self signed certificate support)
  • MySQL 5.7
  • Redis latest
  • RabbitMQ 3
  • ELK (Logs), Elasticsearch 5.4, Kibana 5.4
  • Hashicorp Vault (Credentials management)

Note

Before installing this project, please, make sure you have installed docker and docker-compose

To install docker execute:

$ curl -fsSL https://get.docker.com -o get-docker.sh
$ sh get-docker.sh
$ pip install docker-compose

Installation

Clone this project into your work directory:

$ git clone https://github.com/trydirect/laravel-formula.git

Then build it via docker-compose:

$ cd laravel-formula/7.6.0
$ docker-compose up -d

Let's finish setup with configuring stack

cp backend/.env.example backend/.env

docker-compose exec web bash -c "cd backend && composer install"

docker-compose exec web bash -c "chmod -R 777 /var/www/backend/storage/"

docker-compose exec web bash -c "php artisan key:generate"

Let's check running containers

 $ docker-compose ps

IMAGE                         COMMAND              CREATED         STATUS              PORTS 
kibana:5.4.3            "/docker-entrypoint.…"   2 hours ago         Up         0.0.0.0:5601->5601/tcp
logstash                "/usr/local/bin/dock…"   2 hours ago         Up         9600/tcp, 0.0.0.0:32775->5044/tcp
nginx:latest            "/docker-entrypoint.…"   2 hours ago         Up         0.0.0.0:80->80/tcp, 0.0.0.0:443->443/tcp
elasticsearch           "/docker-entrypoint.…"   2 hours ago         Up         9200/tcp, 9300/tcp
laravel:7.6.0           "/usr/local/bin/supe…"   2 hours ago         Up         9000/tcp
rabbitmq:3-management   "docker-entrypoint.s…"   2 hours ago         Up         4369/tcp, 5671/tcp, 15671-15672/tcp, 25672/tcp, 0.0.0.0:5672->5672/tcp, 0.0.0.0:32774->21072/tcp
mysql:5.7               "docker-entrypoint.s…"   2 hours ago         Up         3306/tcp, 33060/tcp
redis:latest            "docker-entrypoint.s…"   2 hours ago         Up         6379/tcp       

Find examples in laravel-formula/7.6.0/backend:

$ tree routes
routes
├── api.php
├── channels.php
├── console.php
└── web.php

Quick deployment to cloud

Amazon AWS, Digital Ocean, Hetzner and others

Contributing

  1. Fork it (https://github.com/trydirect/laravel-formula/fork)
  2. Create your feature branch (git checkout -b feature/fooBar)
  3. Commit your changes (git commit -am 'Add some fooBar')
  4. Push to the branch (git push origin feature/fooBar)
  5. Create a new Pull Request

Support Development

Donate

laravel-formula's People

Contributors

annaopt avatar dependabot[bot] avatar sspilchin avatar vsilent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

laravel-formula's Issues

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.