All Projects → saada → Docker Lumen

saada / Docker Lumen

Docker Compose setup for quickly writing apps with the Lumen Framework

Projects that are alternatives of or similar to Docker Lumen

Taobao Top Client
Taobao top client(SDK) for laravel
Stars: ✭ 105 (-50.24%)
Mutual labels:  lumen
Laravel Fractal
An easy to use Fractal wrapper built for Laravel and Lumen applications
Stars: ✭ 1,748 (+728.44%)
Mutual labels:  lumen
Lumen Microservice
Lumen on Docker - Skeleton project with Nginx, MySQL & PHP 7 | Aws ECS, Google Kubernates, Azure Container Engine
Stars: ✭ 183 (-13.27%)
Mutual labels:  lumen
Vue Lumen Starter
😎 VueJs & Lumen Api Starter.
Stars: ✭ 116 (-45.02%)
Mutual labels:  lumen
Toastr
👀 toastr.js notifications for Laravel 5 and Lumen
Stars: ✭ 133 (-36.97%)
Mutual labels:  lumen
Forrest
A Laravel library for Salesforce
Stars: ✭ 171 (-18.96%)
Mutual labels:  lumen
Laravel Aspect
aspect oriented programming Package for laravel framework
Stars: ✭ 98 (-53.55%)
Mutual labels:  lumen
Lumen Api Starter
Lumen 8 基础上扩展出的API 启动项目,精心设计的目录结构,规范统一的响应数据格式,Repository 模式架构的最佳实践。
Stars: ✭ 197 (-6.64%)
Mutual labels:  lumen
Laravel Microservices
Pseudo-microservices project written in Laravel
Stars: ✭ 138 (-34.6%)
Mutual labels:  lumen
Laravel Auditing
Record the change log from models in Laravel
Stars: ✭ 2,210 (+947.39%)
Mutual labels:  lumen
Xblock Kernel
XBlock - 开发文档
Stars: ✭ 127 (-39.81%)
Mutual labels:  lumen
Laravel Pug
Pug view adapter for Laravel and Lumen
Stars: ✭ 130 (-38.39%)
Mutual labels:  lumen
Laravel Http2 Server Push
A middleware package for Laravel to enable server push for your script, style, and image assets.
Stars: ✭ 174 (-17.54%)
Mutual labels:  lumen
Lumen Route List
Lumen Route List
Stars: ✭ 108 (-48.82%)
Mutual labels:  lumen
Laravel Intl
🚫 [ABANDONED] Easy to use internationalization/localization functions for Laravel 5
Stars: ✭ 185 (-12.32%)
Mutual labels:  lumen
Larasupport
📦 Adds Laravel Packages Support to Lumen and Vendor Publish Artisan Command.
Stars: ✭ 104 (-50.71%)
Mutual labels:  lumen
Laravel Awesome
Laravel 学习图谱
Stars: ✭ 143 (-32.23%)
Mutual labels:  lumen
Jikan Rest
The REST API for Jikan
Stars: ✭ 200 (-5.21%)
Mutual labels:  lumen
Seotools
SEO Tools for Laravel
Stars: ✭ 2,406 (+1040.28%)
Mutual labels:  lumen
Laravel Source Encrypter
Laravel and Lumen Source Code Encrypter
Stars: ✭ 175 (-17.06%)
Mutual labels:  lumen

Docker + Lumen with Nginx, MySQL, and Memcached

image

Why?

Setting up an entire Lumen stack can be time consuming. This repo is a quick way to write apps in PHP using Lumen from an any Docker client. It uses docker-compose to setup the application services, databases, cache, etc...

Clone this repo

git clone https://github.com/saada/docker-lumen.git
cd docker-lumen

Create Lumen App

now, create the app in the images/php directory named app

cd images/php
docker run --rm -it -v $(pwd):/app saada/lumen-cli lumen new app

Configuration

There are two configurations using .env files. One .env file for docker-compose.yaml and another for the php application.

# copy both files and make changes to them if needed
cp .env.docker.example .env
cp .env.app.example images/php/app/.env

To change configuration values, look in the docker-compose.yml file and change the php container's environment variables. These directly correlate to the Lumen environment variables.

Docker Setup

Docker for Mac

Docker for Windows

Docker for Linux

Build & Run

docker-compose up --build -d

Navigate to http://localhost:80 and you should see something like this image

Success! You can now start developing your Lumen app on your host machine and you should see your changes on refresh! Classic PHP development cycle. A good place to start is images/php/app/routes/web.php.

Feel free to configure the default port 80 in docker-compose.yml to whatever you like.

Stop Everything

docker-compose down

Running Artisan commands

docker-compose exec php sh
# inside the container
cd ..
php artisan migrate
php artisan cache:clear

Contribute

Submit a Pull Request!

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