Dockerized Laravel based on LEP
Laravel application in a Docker container
Via Composer
$ git clone https://github.com/alireaza/dockerized-laravel.git laravel
$ cd laravel
$ CURRENT_UID=$(id -u):$(id -g) docker-compose up --detach --build
$ CURRENT_UID=$(id -u):$(id -g) docker-compose up --detach --build
$ CURRENT_UID=$(id -u):$(id -g) docker-compose down
$ sudo chown -R $(id -u):$(id -g) {./nginx/,./php/,./src/}
$ docker-compose logs --tail 100 --follow nginx
$ docker-compose exec nginx nginx -h
$ docker-compose logs --tail 100 --follow php
$ docker-compose exec --user $(id -u):$(id -g) php php -h
$ docker-compose exec --user $(id -u):$(id -g) php composer -h
$ docker-compose exec php /usr/bin/dbgpProxy --server 0.0.0.0:9003 --client 0.0.0.0:9001
$ docker-compose exec --user $(id -u):$(id -g) php php artisan
$ docker-compose exec --user root php chown -R www-data:www-data /var/www/html/storage
The MIT License (MIT). Please see License File for more information.