All Projects → lephleg → laravel-lumen-docker

lephleg / laravel-lumen-docker

Licence: other
Laravel/Lumen Docker Scaffold

Programming Languages

Dockerfile
14818 projects

Projects that are alternatives of or similar to laravel-lumen-docker

Learn Laravel
Laravel 学习资料和开源项目集
Stars: ✭ 229 (+218.06%)
Mutual labels:  laravel-framework
Laravel-5.3-Repository
Simple repository setup for Laravel 5.3
Stars: ✭ 17 (-76.39%)
Mutual labels:  laravel-framework
laravel-monitoring
Monitor your Laravel servers
Stars: ✭ 118 (+63.89%)
Mutual labels:  laravel-framework
Auth Tests
Always-current tests for Laravel's authentication system. Curated by the community.
Stars: ✭ 230 (+219.44%)
Mutual labels:  laravel-framework
laravel-vue-i18n
Allows to connect your `Laravel` Framework translation files with `Vue`.
Stars: ✭ 430 (+497.22%)
Mutual labels:  laravel-framework
rest-api
Laravel restfull api boilerplate
Stars: ✭ 57 (-20.83%)
Mutual labels:  laravel-framework
Blogetc
Easily add a full Laravel blog (with built in admin panel and public views) to your laravel project with this simple package.
Stars: ✭ 198 (+175%)
Mutual labels:  laravel-framework
Laravel-Trik-Indonesia
Kumpulan trik laravel berbahasa indonesia
Stars: ✭ 74 (+2.78%)
Mutual labels:  laravel-framework
laravel-hmvc-sample
Sample project, building a HMVC structure for Laravel 5,6,7,8
Stars: ✭ 28 (-61.11%)
Mutual labels:  laravel-framework
laravel-admin
Laravel Admin panel with theme , modules ,artisan commands and helper classess.Laravel admin boilerplate with theme and modules
Stars: ✭ 22 (-69.44%)
Mutual labels:  laravel-framework
Laracrud
Laravel Code Generator based on MySQL Database
Stars: ✭ 238 (+230.56%)
Mutual labels:  laravel-framework
Laravel User Activity
Monitor user activity easily!
Stars: ✭ 253 (+251.39%)
Mutual labels:  laravel-framework
Adware-ads-network-server
Online Advertising Network Server
Stars: ✭ 44 (-38.89%)
Mutual labels:  laravel-framework
Laravel Auth
Laravel 8 with user authentication, registration with email confirmation, social media authentication, password recovery, and captcha protection. Uses offical [Bootstrap 4](http://getbootstrap.com). This also makes full use of Controllers for the routes, templates for the views, and makes use of middleware for routing. The project can be stood u…
Stars: ✭ 2,692 (+3638.89%)
Mutual labels:  laravel-framework
finance
💰 Free open-source personal finance tracking web application.
Stars: ✭ 156 (+116.67%)
Mutual labels:  laravel-framework
Wagonwheel
Offer an online version of your Laravel emails to users.
Stars: ✭ 224 (+211.11%)
Mutual labels:  laravel-framework
laravel-6-full-project
Laravel 6 full project with login, authentication, register, create | update | delete record through forms. Search and view the record. And implementation fo Laravel admin panel.
Stars: ✭ 31 (-56.94%)
Mutual labels:  laravel-framework
LaravelTube
Open source project about sharing videos platform built on Laravel
Stars: ✭ 22 (-69.44%)
Mutual labels:  laravel-framework
core
The Laravel single page forum package (Vue + Tailwind CSS + Laravel)
Stars: ✭ 157 (+118.06%)
Mutual labels:  laravel-framework
starter-kit
📊 A complete dashboard built on laravel and quasar abstractions, ready to be used
Stars: ✭ 20 (-72.22%)
Mutual labels:  laravel-framework

Laravel/Lumen Docker Scaffold

Description

This will create a dockerized stack for a Laravel/Lumen application, consisted of the following containers:

  • app, your PHP application container

     Nginx, PHP7.4 PHP7.4-fpm, Composer, NPM, Node.js v10.x
    
  • mysql, MySQL database container (mysql official Docker image)

Directory Structure

+-- src <project root>
+-- resources
|   +-- default
|   +-- nginx.conf
|   +-- supervisord.conf
|   +-- www.conf
+-- .gitignore
+-- Dockerfile
+-- docker-compose.yml
+-- readme.md <this file>

Setup instructions

Prerequisites:

Installation steps:

  1. Create a new directory in which your OS user has full read/write access and clone this repository inside.

  2. Create two new textfiles named db_root_password.txt and db_password.txt and place your preferred database passwords inside:

    $ echo "myrootpass" > db_root_password.txt
    $ echo "myuserpass" > db_password.txt
    
  3. Open a new terminal/CMD, navigate to this repository root (where docker-compose.yml exists) and execute the following command:

    $ docker-compose up -d
    

    This will download/build all the required images and start the stack containers. It usually takes a bit of time, so grab a cup of coffee.

  4. After the whole stack is up, enter the app container and install the framework of your choice:

    Laravel

    $ docker exec -it app bash
    $ composer create-project --prefer-dist laravel/laravel .
    $ nano .env
    $ php artisan migrate --seed
    

    Lumen

    $ docker exec -it app bash
    $ composer create-project --prefer-dist laravel/lumen .
    $ nano .env
    $ php artisan migrate --seed
    
  5. That's it! Navigate to http://localhost to access the application.

Default configuration values

The following values should be replaced in your .env file if you're willing to keep them as defaults:

DB_HOST=mysql
DB_PORT=3306
DB_DATABASE=appdb
DB_USERNAME=user
DB_PASSWORD=myuserpass
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].