Skip to content

Docker Compose setup for quickly writing apps with the Lumen Framework

Notifications You must be signed in to change notification settings

jamiedoris/docker-lumen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Docker + Lumen with Nginx and MySQL

This setup is great for writing quick apps in PHP using Lumen from an any Docker client. It uses docker-compose to setup the application services.

Clone this repo

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

Create Lumen App

If you haven't already installed lumen globally, run

composer global require "laravel/lumen-installer"

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

cd images/php
lumen new app

Configuration

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

Build & Run!

docker-compose up --build -d

Navigate to http://localhost:80 and you can now start developing your Lumen app on your host machine and you should see your changes on refresh! Classic PHP development cycle.

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

Stop Everything

docker-compose down

About

Docker Compose setup for quickly writing apps with the Lumen Framework

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 84.0%
  • Shell 16.0%