https://github.com/nicklaswallgren/lumen-docker-starter
Lumen framework starter
https://github.com/nicklaswallgren/lumen-docker-starter
docker docker-compose laravel lumen lumen-php-framework php
Last synced: about 1 year ago
JSON representation
Lumen framework starter
- Host: GitHub
- URL: https://github.com/nicklaswallgren/lumen-docker-starter
- Owner: NicklasWallgren
- Created: 2017-04-17T08:40:22.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-04-17T09:53:46.000Z (about 9 years ago)
- Last Synced: 2025-01-21T08:08:41.759Z (over 1 year ago)
- Topics: docker, docker-compose, laravel, lumen, lumen-php-framework, php
- Language: Makefile
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Lumen Docker Starter
> An Lumen framework starter kit featuring
[Lumen](https://lumen.laravel.com/) and
[Docker](https://www.docker.com/)
([PHP],
[MySQL],
[Memcached],
and [Nginx])
This seed repo serves as an Lumen framework starter for anyone looking to get up and running with Lumen and PHP fast. Using Docker for building our environment.
* Ready to go development environment using Docker for working with Lumen.
* A great Lumen seed repo for anyone who wants to start their project.
### Quick start
**Make sure you have Docker version >= 17.04.0**
```bash
# clone our repo
# --depth 1 removes all but one .git commit history
git clone --depth 1 --recursive https://github.com/NicklasWallgren/lumen-docker-starter.git lumen-docker-starter
# change directory to our repo
cd lumen-docker-starter
# start the docker containers. The first boot will take some time
make
```
go to [http://localhost](http://localhost) or [http://](http://)
# Getting Started
## Commands
### Start containers
```bash
make
```
### Stop containers
```bash
make halt
```
### Start individual container
```bash
make start [php-fpm|php-cli|nginx|mysql|memcached]
```
### Stop individual container
```bash
make stop [php-fpm|php-cli|nginx|mysql|memcached]
```
### Update composer dependencies
```bash
make update-project
```
### Access artisan cli
```bash
# Access the php container
make bash-cli
# Launch the artisan cli
cd lumen && php artisan
```
### Access MySQL cli
```bash
make mysql-cli
```
### Access PHP container bash
```bash
make bash-php
```
### Access Nginx container bash
```bash
make bash-nginx
```
### Access PHP-FPM container bash
```bash
make bash-fpm
```
### Access Memcached container bash
```bash
make bash-memcached
```
### Access MySQL container bash
```bash
make bash-mysql
```
### Check container status
```bash
make status
```
# Contributing
I'll accept pretty much everything so feel free to open a Pull-Request